{"_id":"cli-command-parser","_rev":"94717","name":"cli-command-parser","description":"Parse cli commands in a string intended for child_process#spawn","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}],"time":{"modified":"2021-06-03T10:31:33.000Z","created":"2015-09-11T01:25:24.173Z","1.0.3":"2015-09-14T06:26:31.917Z","1.0.2":"2015-09-11T01:29:10.789Z","1.0.1":"2015-09-11T01:25:24.173Z"},"users":{},"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/cli-command-parser.git"},"versions":{"1.0.3":{"name":"cli-command-parser","version":"1.0.3","description":"Parse cli commands in a string intended for child_process#spawn","main":"index.js","scripts":{"test":"jasmine"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/cli-command-parser.git"},"keywords":["cli","command","arguments","parser","flags"],"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"ISC","devDependencies":{"jasmine":"^2.3.2"},"gitHead":"0dcaa6bfdb79a52e08a084419d8dec372b129ffc","bugs":{"url":"https://github.com/leahciMic/cli-command-parser/issues"},"homepage":"https://github.com/leahciMic/cli-command-parser#readme","_id":"cli-command-parser@1.0.3","_shasum":"377af3ce60ad2d8a34a7e5eae4b395d491b0d652","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"dist":{"shasum":"377af3ce60ad2d8a34a7e5eae4b395d491b0d652","size":1535,"noattachment":false,"key":"/cli-command-parser/-/cli-command-parser-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-command-parser/download/cli-command-parser-1.0.3.tgz"},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}],"directories":{},"publish_time":1442211991917,"_cnpm_publish_time":1442211991917,"_hasShrinkwrap":false},"1.0.2":{"name":"cli-command-parser","version":"1.0.2","description":"Parse cli commands in a string intended for child_process#spawn","main":"index.js","scripts":{"test":"jasmine"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/cli-command-parser.git"},"keywords":["cli","command","arguments","parser","flags"],"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"ISC","devDependencies":{"jasmine":"^2.3.2"},"gitHead":"6ab4535f84053e984de892af8fc8f47e0c45a0ee","bugs":{"url":"https://github.com/leahciMic/cli-command-parser/issues"},"homepage":"https://github.com/leahciMic/cli-command-parser#readme","_id":"cli-command-parser@1.0.2","_shasum":"f48cca7f78af973bbb5162cfe743b325669d90c3","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"dist":{"shasum":"f48cca7f78af973bbb5162cfe743b325669d90c3","size":1427,"noattachment":false,"key":"/cli-command-parser/-/cli-command-parser-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-command-parser/download/cli-command-parser-1.0.2.tgz"},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}],"directories":{},"publish_time":1441934950789,"_cnpm_publish_time":1441934950789,"_hasShrinkwrap":false},"1.0.1":{"name":"cli-command-parser","version":"1.0.1","description":"Parse cli commands in a string intended for child_process#spawn","main":"index.js","scripts":{"test":"jasmine"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/cli-command-parser.git"},"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"ISC","devDependencies":{"jasmine":"^2.3.2"},"gitHead":"d841d50c4a111fbd81ae6717d7cef11e435dff6f","bugs":{"url":"https://github.com/leahciMic/cli-command-parser/issues"},"homepage":"https://github.com/leahciMic/cli-command-parser#readme","_id":"cli-command-parser@1.0.1","_shasum":"96ebc69c9ae5d2639a5a4b9865f34dc97b200c1b","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"dist":{"shasum":"96ebc69c9ae5d2639a5a4b9865f34dc97b200c1b","size":1248,"noattachment":false,"key":"/cli-command-parser/-/cli-command-parser-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cli-command-parser/download/cli-command-parser-1.0.1.tgz"},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}],"directories":{},"publish_time":1441934724173,"_cnpm_publish_time":1441934724173,"_hasShrinkwrap":false}},"readme":"# cli-command-parser [![Build Status](https://travis-ci.org/leahciMic/cli-command-parser.svg?branch=master)](https://travis-ci.org/leahciMic/cli-command-parser)\n\nParses a string that is intended for `child_process#spawn` and returns an array\nwith the first value being the command to execute and the rest of the array\ncontaining separated arguments.\n\nIt can handle escape sequences as well as quotes.\n\n## Install\n\n```sh\nnpm install --save cli-command-parser\n```\n\n## Usage\n\n```js\nvar cliCommandParser = require('cli-command-parser');\nconsole.log(cliCommandParser('ls -lh'));\n\n// outputs ['ls', '-lh']\n\nconsole.log(cliCommandParser('foo \"some options\" --test'));\n\n// outputs ['foo', 'some options', '--test']\n```\n","_attachments":{},"homepage":"https://github.com/leahciMic/cli-command-parser#readme","bugs":{"url":"https://github.com/leahciMic/cli-command-parser/issues"},"license":"ISC"}