argsplit
Convert a string of arguments into an array
Install
$ npm install --save argsplit
Tests
$ npm test
Coverage
$ npm test -- --cov
Use cases
If you need to spawn
a command that is given as a string
Example
var argsplit = var input = 'npm config set init.author.name "Evan Lucas" --verbose'var out = consolevar cmd = out // => 'npm'
Will return the following:
'npm' 'config' 'set' 'init.author.name' '"Evan Lucas"' '--verbose'