Home

Awesome

Remover

Recursively asyncronously removely a directory.

Install

npm install remover

Example

var rmdir = require('remover');

var remover = rmdir('/path/to/remove', function(err, removed_files) {
  if (err) console.warn('Error!', err)
  console.log(removed_files); // prints list of files removed
});

// wait 1 second and then stop the removal process
setTimeout(function() {
  remover.stop();
}, 1000);

Credits

Written by Tomás Pollak.

Copyright

(c) Fork Ltd. MIT licensed.