0.1.0 • Published 9 years ago

leftovers v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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.