npm.io
3.0.1 • Published 7 years ago

get-symlinks

Licence
MIT
Version
3.0.1
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
6

Travis CI node npm PRs


Get all symbolic link (file symlinks) using glob

Install

$ npm install get-symlinks

Usage

const getSymlinks = require('get-symlinks');

getSymlinks(['/home/guntur/.*']).then(symlinks => {
    console.log(symlinks);
});

const symlinks = getSymlinks.sync(['/home/guntur/.*', '!/home/guntur/.*rc']);
console.log(symlinks);

API

getSymlinks(patterns, [options])
  • Params:
  • Returns: <Promise<string[]> - An array of symlinks paths.
getSymlinks.sync(patterns, [options])
  • Params:
  • Returns: <string[]> - An array of symlinks paths.

License

MIT Guntur Poetra

Keywords