lighter-spawn module is a lightweight child process spawning utility.
From your project directory, install and save as a dependency:
npm install --save lighter-spawn
The API is simply a function which returns a child process.
var spawn =// Write file details to the console.
Spawn a command, and return a child process object. The command is a string, which can include arguments separated by spaces. If you would like to include a space character inside an argument, use a backslash to escape it.
Pass an error object if a process exits with a nonzero exit code.
Pass a concatenated string of stderr stream data.
Pass a concatenated string of stdout stream data.
Pass an array of lines of stderr stream data.
Pass an array of lines of stdout stream data.
For now, please see the tests.