{"name":"spawn-args","version":"0.0.2","description":"Turn a string of command line options into an array for child_process.spawn","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/spawn-args.git"},"keywords":["spawn","argv","parser"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/spawn-args/issues"},"homepage":"https://github.com/binocarlos/spawn-args","devDependencies":{"mocha":"~1.12.0","should":"~1.2.2"},"_id":"spawn-args@0.0.2","dist":{"shasum":"54d83c4bb9ab1e53819fa1fbfb58c8a2abf1e6e2","tarball":"http://registry-npm.ywwl.com/spawn-args/download/spawn-args-0.0.2.tgz","integrity":"sha512-S4poqXcXtNKzBcX4UTC4S/XgbJDhoaSY37d85ghWvu3TmpjssZayYNmgw4/a+2W0v2qNPJP3ZfmN718oOdNXqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsqWtMqhide564iPGn9Z/kUnXxkauhX0ZxVNMRDO5FoAIhANdTBMCUJVd74tvSRJiiIGd4n2heHlVcKK6Xxbp1P9Uv"}],"size":2325,"noattachment":false,"key":"/spawn-args/-/spawn-args-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}],"readme":"spawn-args\n==========\n\n![Build status](https://api.travis-ci.org/binocarlos/spawn-args.png)\n\nTurn a string of command line options into an array for child_process.spawn\n\n## install\n\n```\n$ npm install spawn-args\n```\n\n## usage\n\n```js\nvar spawnargs = require('spawn-args');\n//spawnargs(argString:string[, options:object]);\n\nvar args = spawnargs('-port 80 --title \"this is a title\"');\n\n/*\n\n\t[\n\t\t'-port',\n\t\t'80',\n\t\t'--title',\n\t\t'\"this is a title\"'\n\t]\n\t\n*/\n```\n\nThe `removequotes` option will remove quotes from values if they do not have spaces\n\n```js\nvar args2 = spawnargs('-port 80 --color \"red\" --title \"this is a title\"', { removequotes: true });\n\n/*\n\n\t[\n\t\t'-port',\n\t\t'80',\n\t\t'--title',\n\t\t'\"this is a title\"'\n\t]\n\t\n*/\n```\n\nIf `removequotes` is `always` then quotes will be removed even if the value contains spaces\n\n```js\nvar args3 = spawnargs('-port 80 --color \"red\" --title \"this is a title\"', { removequotes: 'always' });\n\n/*\n\n\t[\n\t\t'-port',\n\t\t'80',\n\t\t'--title',\n\t\t'this is a title'\n\t]\n\t\n*/\n```\n\n## license\n\nMIT\n","publish_time":1396737752771,"_cnpm_publish_time":1396737752771,"dist-tags":{"latest":"0.2.0"}}