cline-parser
Mac/Linux | Windows |
---|
A library to parse a string command line into an array usable by child_process.spawn
Install
npm i cline-parser --save
Usage
var parser = ; var cmdStr = 'ls "some path / \\"with /spaces" -args'; var cmd = ; // this is what you could actually do. ; // quick insights. cmdprg == 'ls'; cmdargs == 'some path / \\"with /spaces' '-args' ;