spawn-rmrf
Removes recursively with rm -rf ./file/path
(spawned), then executes a callback on end (optional).
Quick start
Install
npm install spawn-rmrf
Usage
var rmrf = ;
Basic
;
With a callback (when done)
;
With Gulp
// asyncgulp;
ChildProcess events
rmrf
function launches a child process (spawn
) and returns a ChildProcess
instance, see the Node.js doc (spawn) for more details.
So you can use event listeners:
var rm = ; rmstdout; rmstderr; rm;
Testing
spawn-rmrf is tested with Unit.js and Mocha. Unit.js is a powerful and intuitive unit testing framework for javascript.
License
MIT (c) 2013, Nicolas Tallefourtane.
Author
Nicolas Talle |