Fluent Child Process-API for Node.js
This Library abstracts the complex command-line usage of child process into a fluent and easy to use node.js module. Inspired and forked from the amazing and famous node.js module fluent-ffmpeg ;
Installation
Via npm:
$ npm install fluent-child-process
Or using git:
$ git clone git://github.com/digital-flowers/fluent-child-process.git
Usage
child process command syntax (options are optional)
var child = ;;
simple usage
var fluent = ;var child = ;// you can also kill the processchild;
using events
var fluent = ;var child = ;// instead of passing end callback you can listen to all the following optional eventschild;child;child;child;
Options
captureStdout {Boolean} wither to to capture child process output or not, default = true
stdoutLines {Number} maximum lines of child process output to keep in memory, default = unlimited
timeout {Number} child process processing timeout in seconds, default is no timeout
logger {Object} logger object with 'error', 'warning', 'info' and 'debug' methods, default is no logging