{"_id":"cli-command-parser","_rev":"5-facd4505d5a60fd8495110df33fe1248","name":"cli-command-parser","description":"Parse cli commands in a string intended for child_process#spawn","dist-tags":{"latest":"1.0.3"},"versions":{"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","tarball":"https://registry.npmjs.org/cli-command-parser/-/cli-command-parser-1.0.1.tgz","integrity":"sha512-j7wq7yNYIZt5hBkGpPR3u4TfPUHjJZFzCJiSlfZmf5iPpG8AYMwm0zMcTEOmCeh3xqpaYyj+N7xwjWdOLw8i4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcWd6t9JTvQJ5j3igM531POF3rnhwh8at7n49EdZUT8wIhALIiwQWFvdvUCLF+UtifUXvCu0Atow/KshNjOHEpwFPd"}]},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/cli-command-parser/-/cli-command-parser-1.0.2.tgz","integrity":"sha512-1IMY+CrTnaR/5KMg55SpcaOh3nIyRz2pdHmyz3mJp5YaQ7DreNR0xFNnhh6ZhOH+AOfxiXHGRslvsST4RELIaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqyfp6ysvlSDXmNEVscq165O1wa993wCkOkNC4yU3GVgIgfUAJ003GyxzdexbKf2qQonJWFXVUWqWmgTfbCH2gLjU="}]},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/cli-command-parser/-/cli-command-parser-1.0.3.tgz","integrity":"sha512-aEQYAehtpAUSPVly+yV01FPFQcR32odfc+Uv6BniPJBN4WMcBDMcBJXushGXT0RreO87nzY4Od1IFL1QAQQXXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxWCFx1WmluTAsJ89iOjdIMjM0FNaFk3oDrSmEtLQhqgIgYD+XDrjWMYo0lXBs4ew3bq26qUGSpRxQkcW3MVOAeUY="}]},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]}},"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","maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}],"time":{"modified":"2022-06-13T06:08:50.147Z","created":"2015-09-11T01:25:24.173Z","1.0.1":"2015-09-11T01:25:24.173Z","1.0.2":"2015-09-11T01:29:10.789Z","1.0.3":"2015-09-14T06:26:31.917Z"},"homepage":"https://github.com/leahciMic/cli-command-parser#readme","repository":{"type":"git","url":"git+https://github.com/leahciMic/cli-command-parser.git"},"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"bugs":{"url":"https://github.com/leahciMic/cli-command-parser/issues"},"license":"ISC","readmeFilename":"README.md","keywords":["cli","command","arguments","parser","flags"]}