Get all symbolic link (file symlinks) using glob
$ npm install get-symlinks
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);
- Params:
patterns
:<string | string[]>
(required) - See the globby patterns.options
:<object>
(optional) - See the globby options.
- Returns:
<Promise<string[]>
- An array of symlinks paths.
- Params:
patterns
:<string | string[]>
(required) - See the globby patterns.options
:<object>
(optional) - See the globby options.
- Returns:
<string[]>
- An array of symlinks paths.
- del-symlinks - Delete symlinks using glob.
- is-symbolic-link - Check if PATH is symbolic link
- make-symlinks - Create symbolic link (symlinks) using glob.
MIT © Guntur Poetra