npm.io
0.1.2 • Published 9 years ago

del-symlinks

Licence
MIT
Version
0.1.2
Deps
4
Vulns
0
Weekly
0
Stars
2

Delete symlinks using glob.

Install

$ npm install --save del-symlinks

Usage

async

const delSymlinks = require('del-symlinks');

delSymlinks(['/home/guntur/.*', '!/home/guntur/.*rc']).then(symlinks => {
	console.log('symlinks was deleted:\n', symlinks.join('\n'));
});

sync

const delSymlinks = require('del-symlinks');

const symlinks = delSymlinks.sync(['/home/guntur/*']);

console.log('Symlinks was deleted:\n', symlinks.join('\n'));

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.

License

MIT Guntur Poetra

Keywords