{"name":"expand-args","description":"Expand parsed command line arguments using expand-object.","version":"0.3.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.4.2","kind-of":"^3.0.2","lazy-cache":"^1.0.3","mixin-deep":"^1.1.3","set-value":"^0.3.3"},"devDependencies":{"gulp-format-md":"^0.1.5","minimist":"^1.1.3","mocha":"*","should":"*"},"keywords":["arg","args","arguments","cli","command","command-line","expand","expand-object","line","object"],"verb":{"plugins":["gulp-format-md"],"related":{"list":["expand-object","map-config"]},"reflinks":["expand-object"]},"gitHead":"f9b8ccda3b5f9bf2793dff59bddc9e5f6907f9a9","_id":"expand-args@0.3.2","_shasum":"73bbfd22a7d0d02bcfd4c1f960e7a1f9ba5b1956","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"73bbfd22a7d0d02bcfd4c1f960e7a1f9ba5b1956","tarball":"http://registry-npm.ywwl.com/expand-args/download/expand-args-0.3.2.tgz","integrity":"sha512-bgyG2BHZumBPPNpNdNOuj2/g2CzMV9UXd9z8aM+/SXyDDHE7tzWzrgFRybiurUMf8+VBDD+NnJPRpR1FyQgQFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTdj8HNV4xMai7HGeN2Mua47IUn8ulr/x2ibqLrO5VMgIgfYxr+ThCNXpiotCazvSVAGuurXoLfMOuHlAGUKqGV5k="}],"size":3265,"noattachment":false,"key":"/expand-args/-/expand-args-0.3.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":1454058427221,"_cnpm_publish_time":1454058427221,"dist-tags":{"latest":"0.4.3"}}