Package Exports
- get-symlinks
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-symlinks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
get-symlinks
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
- del-symlinks - Delete symlinks using glob.
- is-symbolic-link - Check if PATH is symbolic link
- make-symlinks - Create symbolic link (symlinks) using glob.
License
MIT © Guntur Poetra