{"name":"spawn-args","version":"0.0.4","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"},"gitHead":"b98767f0302f1af34054edfd0942df33e9f72d6c","_id":"spawn-args@0.0.4","_shasum":"5e91f82e4612db9390926d70d8541bbdfecc2e1a","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}],"dist":{"shasum":"5e91f82e4612db9390926d70d8541bbdfecc2e1a","tarball":"http://registry-npm.ywwl.com/spawn-args/download/spawn-args-0.0.4.tgz","integrity":"sha512-2bcuMF/MHwV91kHcDtDUPoAs0qU3UJFkNVvdqkjy/2im5rGo6vEew3BKPtiesgfzK/CrlNjMLSqLZgpeMymsUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQConzjgQWefCt2bnuwQe/DerWJ7bEnCz6kP58NjLLuTzgIhAP9hL9nQcX29gIivncW93w1Tz10+kUQAu7Q6bdF4znfc"}],"size":2411,"noattachment":false,"key":"/spawn-args/-/spawn-args-0.0.4.tgz"},"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":1406078008049,"_cnpm_publish_time":1406078008049,"dist-tags":{"latest":"0.2.0"}}