3.0.1 • Published 6 years ago

get-symlinks v3.0.1

Weekly downloads
236
License
MIT
Repository
github
Last release
6 years ago

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