{"name":"parse-spawn-args","version":"1.0.1","description":"parse string to spawn recognized arguments list","main":"parser.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mingqi/parse-spawn-args.git"},"keywords":["cli","parser","argument","spawn"],"author":{"name":"shaomq@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/mingqi/parse-spawn-args/issues"},"homepage":"https://github.com/mingqi/parse-spawn-args","gitHead":"ca3627917813ac5e39fa187807e98213caa5c0c2","_id":"parse-spawn-args@1.0.1","_shasum":"022f37007ca18b6ebc1a1f1964fd721afad63d3d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.1","_npmUser":{"name":"shaomq","email":"shaomq@gmail.com"},"maintainers":[{"name":"shaomq","email":"shaomq@gmail.com"}],"dist":{"shasum":"022f37007ca18b6ebc1a1f1964fd721afad63d3d","tarball":"http://registry-npm.ywwl.com/parse-spawn-args/download/parse-spawn-args-1.0.1.tgz","integrity":"sha512-dxlNn4dfdMatUi9C7OFjSbjOgO5A0nqLG7rBw0bX+XRAKZpCdPFsbQmJSb1ce7/pToBbnAkDG0UhwBMvbCdPHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3XvRotELlUgMLXFbVkky5opxVekrKMJlFOmYczBaTyAiBoCRSoOP2ixlFs1ses8NIJfUftFx6X3A1hU0uf8kbr9Q=="}],"size":8073,"noattachment":false,"key":"/parse-spawn-args/-/parse-spawn-args-1.0.1.tgz"},"readme":"parse-spawn-args\n===========\n\nIf you need to spawn child process in Node.js, and need to parse a string command to a list arguments that pass to child process,  this module will be helpful. Here is examples:\n\n## usage\n\n### parse args with quote around\n```\nvar parse = require('parse-spawn-args').parse\nparse('-port 80 --title \"this is a title\"')\n/*\n    [\n        '-port',\n        '80',\n        '--title',\n        'this is a title'\n    ]\n/*\n```\n\n### parse args with quote escape\n```\nvar parse = require('parse-spawn-args').parse\nparse('-port 80 --title \"this is a \\\\\"title\\\\\"')\n/*\n    [\n        '-port',\n        '80',\n        '--title',\n        'this is a \"title\"'\n    ]\n*/\n```\n\n","publish_time":1435733723751,"_cnpm_publish_time":1435733723751,"dist-tags":{"latest":"1.0.2"}}