cli-command-parser
Parses a string that is intended for child_process#spawn
and returns an array
with the first value being the command to execute and the rest of the array
containing separated arguments.
It can handle escape sequences as well as quotes.
Install
npm install --save cli-command-parser
Usage
var cliCommandParser = ;console; // outputs ['ls', '-lh'] console; // outputs ['foo', 'some options', '--test']