del-symlinks
Delete symlinks using glob.
Install
$ npm install --save del-symlinks
Usage
async
const delSymlinks = ;;
sync
const delSymlinks = ; const symlinks = delSymlinks; console;
API
delSymlinks(patterns, [options])
Returns a promise for an array of deleted symlinks paths.
delSymlinks.sync(patterns, [options])
Returns an array of deleted symlinks paths.
-
#### patterns Type:
string
,array
See supported minimatch patterns.
-
#### options Type:
object
See the
node-glob
options.· dryRun
Type:
boolean
Default:false
See symlinks what would be deleted instead of deleting
;
Related
- get-symlinks - Get all symbolic link in directory
- is-symbolic-link - Check if PATH is symbolic link
License
MIT © Guntur Poetra