spawn-args
Turn a string of command line options into an array for child_process.spawn
install
$ npm install spawn-args
usage
var spawnargs = ;//spawnargs(argString:string[, options:object]); var args = ; /* [ '-port', '80', '--title', '"this is a title"' ] */
The removequotes
option will remove quotes from values if they do not have spaces
var args2 = ; /* [ '-port', '80', '--title', '"this is a title"' ] */
If removequotes
is always
then quotes will be removed even if the value contains spaces
var args3 = ; /* [ '-port', '80', '--title', 'this is a title' ] */
license
MIT