childish-processA simpler way to call spawn or exec of
child_process. Makes it easy to call spawn with custom event-handlers. Makes options easy to template, extend, invoke strategies, generating event-handlers that can notify, for example.
var run = require('childish-process');
run(command[, options]);same as
child_process.spawnthough using cross-spawn-async for better Windows support
run(command[, options], callback);delegates to
The options may include a "childish" key with custom event handlers for any of:
"close". It's unlikely that node will ever add a childish option to its
handlersfunction and its defaults for what can be overridden via
ConfigurationThe configuration options are getting a huge upgrade, to be documented and probably tested. Meanwhile, example usage can be found in datomiki's
notifications.json, while gulp-npm-test is an example for code usage.