get-symlinks

Get all symbolic link (file symlinks) using glob

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
get-symlinks
3.0.15 years ago8 years agoMinified + gzip package size for get-symlinks in KB

Readme

get-symlinks
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:
- patterns: <string | string[]> (required) - See the globby patterns. - options: <object> (optional) - See the globby options.
  • Returns: <Promise<string[]> - An array of symlinks paths.

getSymlinks.sync(patterns, [options])

  • Params:
- patterns: <string | string[]> (required) - See the globby patterns. - options: <object> (optional) - See the globby options.
  • Returns: <string[]> - An array of symlinks paths.

Related

License

MIT © Guntur Poetra