/get-symlinks

Get all symbolic link (file symlinks) using glob

Primary LanguageJavaScriptMIT LicenseMIT

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:
  • Returns: <Promise<string[]> - An array of symlinks paths.

getSymlinks.sync(patterns, [options])

  • Params:
  • Returns: <string[]> - An array of symlinks paths.

Related

License

MIT © Guntur Poetra