get-symlinks

3.0.1 • Public • Published

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

Package Sidebar

Install

npm i get-symlinks

Weekly Downloads

422

Version

3.0.1

License

MIT

Unpacked Size

4.29 kB

Total Files

4

Last publish

Collaborators

  • guntur