spawn-handler
Simple handler for ChildProcess.spawn of Node.js, it handles a child process spawned, then executes a callback when the process exits (optional).
spawn-handler has no external dependencies.
Quick start
Install
npm install spawn-handler
Usage
var spawn = ;
spawn.run(command, [args], [options])
Shortcut of
var spawn = spawn; ;
Launches a new process (spawn) with the given command
.
See the Node.js doc (spawn) for more details.
var ls = spawn; lsstdout; lsstderr; ls;
spawn.handle(child, [done], [name])
Spawn handler.
var ls = spawn; lsstdout; lsstderr;
Testing
spawn-handler 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 |