{"name":"spawn-args","version":"0.0.3","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":"09bd058d89919d8dad5e7450b09296baeb6a8fc1","_id":"spawn-args@0.0.3","_shasum":"67bdce48a89f56dd86be73bc5abe716530cce1fe","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}],"dist":{"shasum":"67bdce48a89f56dd86be73bc5abe716530cce1fe","tarball":"http://registry-npm.ywwl.com/spawn-args/download/spawn-args-0.0.3.tgz","integrity":"sha512-3baB1raunfIcEqUaWMwRrqsPgMxCP1n01bIIxdiAsjVIVWQbSpGLdFBJhdEWPoWKtDLOi53B7dgs4o+jeZralA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx2vbpYbwdxZp7KCI4ofeP1siMuik3ryB1JclRQmD2LwIgIDWVTmNHfKtzha5LYSodvHKBVoWnH1IsZbC83V1bGWU="}],"size":2359,"noattachment":false,"key":"/spawn-args/-/spawn-args-0.0.3.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":1406046589677,"_cnpm_publish_time":1406046589677,"dist-tags":{"latest":"0.2.0"}}