<commit_before># expand-args [![NPM version](https://img.shields.io/npm/v/expand-args.svg?style=flat)](https://www.npmjs.com/package/expand-args) [![Build Status](https://img.shields.io/travis/jonschlinkert/expand-args.svg?style=flat)](https://travis-ci.org/jonschlinkert/expand-args)

> Expand parsed command line arguments using expand-object.

**Example**

```js
var minimist = require('minimist');
var expandArgs = require('expand-args');

var argv = minimist(['--set=a:b,c:d']);
//=> { _: [], set: 'a:b,c:d' }

expandArgs(argv);
//=> { _: [], set: [{ a: 'b' }, { c: 'd' }] }
```

Visit [expand-object](https://github.com/jonschlinkert/expand-object) to see the full range of options and features or to create expansion-related issues.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install expand-args --save
```

## Usage

```js
var expandArgs = require('expand-args');
```

### expand args to object values

```js
expandArgs({set: 'a:b'})
//=> {set: {a: 'b'}}

expandArgs({set: 'a.b.c:d'})
//=> {set: {a: {b: {c: 'd'}}}}
```

### expand args to array values

```js
expandArgs({set: 'a:b,c:d'})
//=> {set: [{a: 'b'}, {c: 'd'}]}

expandArgs({set: 'a.b.c:d,e,f'})
//=> {set: {a: {b: {c: ['d', 'e', 'f']}}}}
```

### Convert "object-keys"

```js
expandArgs({'a:b': true})
//=> {a: 'b'}
```

### Expand booleans

```js
expandArgs({set: 'a|b'});
//=> {set: {a: true, b: true}}
```

## Related projects

* [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://www.npmjs.com/package/expand-object) | [homepage](https://github.com/jonschlinkert/expand-object)
* [map-config](https://www.npmjs.com/package/map-config): Map configuration objects to application methods. | [homepage](https://github.com/doowb/map-config)

## Running tests

Install dev dependencies:

```sh
$ npm install -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/expand-args/issues/new).

## Author

**<NAME>**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2016, [<NAME>](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/expand-args/blob/master/LICENSE).

***

_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 11, 2016._<commit_msg>build readme<commit_after># expand-args [![NPM version](https://img.shields.io/npm/v/expand-args.svg?style=flat)](https://www.npmjs.com/package/expand-args) [![Build Status](https://img.shields.io/travis/jonschlinkert/expand-args.svg?style=flat)](https://travis-ci.org/jonschlinkert/expand-args)

> Expand parsed command line arguments using expand-object.

**Example**

```js
var minimist = require('minimist');
var expandArgs = require('expand-args');

var argv = minimist(['--set=a:b,c:d']);
//=> { _: [], set: 'a:b,c:d' }

expandArgs(argv);
//=> { _: [], set: [{ a: 'b' }, { c: 'd' }] }
```

Visit [expand-object](https://github.com/jonschlinkert/expand-object) to see the full range of options and features or to create expansion-related issues.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install expand-args --save
```

## Usage

```js
var expandArgs = require('expand-args');
```

### expand args to object values

```js
expandArgs({set: 'a:b'})
//=> {set: {a: 'b'}}

expandArgs({set: 'a.b.c:d'})
//=> {set: {a: {b: {c: 'd'}}}}
```

### expand args to array values

```js
expandArgs({set: 'a:b,c:d'})
//=> {set: [{a: 'b'}, {c: 'd'}]}

expandArgs({set: 'a.b.c:d,e,f'})
//=> {set: {a: {b: {c: ['d', 'e', 'f']}}}}
```

### Convert "object-keys"

```js
expandArgs({'a:b': true})
//=> {a: 'b'}
```

### Expand booleans

```js
expandArgs({set: 'a|b'});
//=> {set: {a: true, b: true}}
```

## Related projects

* [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://www.npmjs.com/package/expand-object) | [homepage](https://github.com/jonschlinkert/expand-object)
* [map-config](https://www.npmjs.com/package/map-config): Map configuration objects to application methods. | [homepage](https://github.com/doowb/map-config)

## Running tests

Install dev dependencies:

```sh
$ npm install -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/expand-args/issues/new).

## Author

**<NAME>**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2016, [<NAME>](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/expand-args/blob/master/LICENSE).

***

_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 12, 2016._
{'fraction_non_alphanumeric': 0.22599092881088542, 'fraction_numerical': 0.005127193847367383, 'mean_word_length': 4.67337807606264, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, 'https://': 32, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3416631', 'n_tokens_mistral': 1953, 'n_tokens_neox': 1854, 'n_words': 400}