{"name":"expand-args","description":"Expand parsed command line arguments using expand-object.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/expand-args","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/expand-args.git"},"bugs":{"url":"https://github.com/jonschlinkert/expand-args/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"expand-object":"^0.3.8","extend-shallow":"^2.0.1","kind-of":"^2.0.1","lazy-cache":"^0.2.4","set-value":"^0.3.0"},"devDependencies":{"minimist":"^1.1.3","mocha":"*","should":"*"},"keywords":["arg","args","arguments","cli","command","command-line","expand","expand-object","line","object"],"verb":{"related":{"list":["expand-object"]}},"gitHead":"de8dfd363e58f1f252460be28252e00bf13e16dd","_id":"expand-args@0.2.2","_shasum":"3a49fe4eddbf701ecd41bbe5b0a0a6485db1dbc9","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3a49fe4eddbf701ecd41bbe5b0a0a6485db1dbc9","tarball":"http://registry-npm.ywwl.com/expand-args/download/expand-args-0.2.2.tgz","integrity":"sha512-VUPwOX42xf95x/oAd9bTGJlf6+yhA9SULf6avW1TJIcE1R17R7W5GD32C1gQz72vDwCXuvN28/0xXmh93/E+xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNPGl7BqIdebjFIdCiIKKM6JqE4KD6DxxYokUqnALl7AiAOaSdogPJ3RirEwDAR19eMPl724lkMkUTrzhGdkL9luw=="}],"size":3242,"noattachment":false,"key":"/expand-args/-/expand-args-0.2.2.tgz"},"directories":{},"readme":"# expand-args [![NPM version](https://img.shields.io/npm/v/expand-args.svg?style=flat)](https://www.npmjs.com/package/expand-args) [![NPM downloads](https://img.shields.io/npm/dm/expand-args.svg?style=flat)](https://npmjs.org/package/expand-args) [![Build Status](https://img.shields.io/travis/jonschlinkert/expand-args.svg?style=flat)](https://travis-ci.org/jonschlinkert/expand-args)\n\nExpand parsed command line arguments using expand-object.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save expand-args\n```\n\n## Usage\n\n```js\nvar expandArgs = require('expand-args');\n```\n\n**Example**\n\n```js\nvar minimist = require('minimist');\nvar expandArgs = require('expand-args');\n\nvar argv = minimist(['--set=a:b,c:d']);\n//=> { _: [], set: 'a:b,c:d' }\n\nexpandArgs(argv);\n//=> { _: [], set: [{ a: 'b' }, { c: 'd' }] }\n```\n\nVisit [expand-object](https://github.com/jonschlinkert/expand-object) to see the full range of options and features or to create expansion-related issues.\n\n### expand args to object values\n\n```js\nexpandArgs({set: 'a:b'})\n//=> {set: {a: 'b'}}\n\nexpandArgs({set: 'a.b.c:d'})\n//=> {set: {a: {b: {c: 'd'}}}}\n```\n\n### expand args to array values\n\n```js\nexpandArgs({set: 'a:b,c:d'})\n//=> {set: [{a: 'b'}, {c: 'd'}]}\n\nexpandArgs({set: 'a.b.c:d,e,f'})\n//=> {set: {a: {b: {c: ['d', 'e', 'f']}}}}\n```\n\n### Convert \"object-keys\"\n\n```js\nexpandArgs({'a:b': true})\n//=> {a: 'b'}\n```\n\n### Expand booleans\n\n```js\nexpandArgs({set: 'a|b'});\n//=> {set: {a: true, b: true}}\n```\n\n## About\n\n### Related projects\n\n* [expand-object](https://www.npmjs.com/package/expand-object): Expand a string into a JavaScript object using a simple notation. Use the CLI or… [more](https://github.com/jonschlinkert/expand-object) | [homepage](https://github.com/jonschlinkert/expand-object \"Expand a string into a JavaScript object using a simple notation. Use the CLI or as a node.js lib.\")\n* [map-config](https://www.npmjs.com/package/map-config): Map configuration objects to application methods. | [homepage](https://github.com/doowb/map-config \"Map configuration objects to application methods.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/expand-args/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 12, 2016._","publish_time":1446508542516,"_cnpm_publish_time":1446508542516,"dist-tags":{"latest":"0.4.3"}}