{"name":"parse-spawn-args","version":"1.0.2","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":"9640ab1180504d7758ad54be5e884c4fe70e89d1","_id":"parse-spawn-args@1.0.2","_shasum":"a89bb748c196298d5d617fd94b0d0a436fc86ae7","_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":"a89bb748c196298d5d617fd94b0d0a436fc86ae7","tarball":"http://registry-npm.ywwl.com/parse-spawn-args/download/parse-spawn-args-1.0.2.tgz","integrity":"sha512-uNr4v88DLQbCzqrBwHOdAslrgAq2uuQmxlQNwB8orMohUclV0cDIE7o6NdEI1jmvXrV/8jcCBKhnzh93LMSIOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnySDVFIIbsCD0vm9FJCzE1pLOlAeuqevtkkaA/bpu8gIgFvRXF8OiGvsXq6Tv9AJEBw1c5KBv7AYd2tTVXce6/yw="}],"size":8124,"noattachment":false,"key":"/parse-spawn-args/-/parse-spawn-args-1.0.2.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":1436406812710,"_cnpm_publish_time":1436406812710,"dist-tags":{"latest":"1.0.2"}}