leftovers

0.1.0 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.00

Package Sidebar

Install

npm i leftovers

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • gavinhungry