spawn-args

Turn a string of command line options into an array for child_process.spawn

spawn-args

Turn a string of command line options into an array for child_process.spawn

$ npm install spawn-args
var spawnargs = require('spawn-args');
 
var args = spawnargs('-port 80 --title "this is a title"');
 
/*
 
    [
        '-port',
        '80',
        '--title',
        '"this is a title"'
    ]
    
*/

MIT