leftovers
v0.1.0
Published
Delete everything in a directory except for specified files
Downloads
3
Readme
leftovers
Delete everything in a directory except for specified files.
Installation
npm install leftovers
Usage
var leftovers = require('leftovers');
leftovers('path/to/files', [
'foo/bar/baz.js',
'my/dir'
], callback); // (err, paths)
Everything in path/to/files
will be deleted, except:
foo/
foo/bar/
foo/bar/baz.js
my/dir/
License
Released under the terms of the MIT license. See LICENSE.