{"name":"spawn-args","version":"0.1.0","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":"c3906a93b1deab983d95d8084f74eb75b25f1293","_id":"spawn-args@0.1.0","_shasum":"3e0232a0571b387907f8b3f544aa531c6224848c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}],"dist":{"shasum":"3e0232a0571b387907f8b3f544aa531c6224848c","tarball":"http://registry-npm.ywwl.com/spawn-args/download/spawn-args-0.1.0.tgz","integrity":"sha512-wDBp/ME3UG81qteUM3WGiGPRtnw5nCb+PBR6DLTMDv8Jbb2LND/77hlQ5o5j3W9Iwp9HQC/y9gRjneBiNbVagA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCguYUCdrx2faE+Jg1+cBHGZkeV7Nji1AN/IB28QTT1+QIhANy5mdDlkIaZ2MRUwGz0SDx8M1jDmiWtawNOYwb6Q/WE"}],"size":2572,"noattachment":false,"key":"/spawn-args/-/spawn-args-0.1.0.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":1431982166179,"_cnpm_publish_time":1431982166179,"dist-tags":{"latest":"0.2.0"}}