1 # dargs [![Build Status](https://travis-ci.org/sindresorhus/dargs.svg?branch=master)](https://travis-ci.org/sindresorhus/dargs)
3 > Convert an object of options into an array of command-line arguments
5 Basically the inverse of an argument parser like minimist. Useful when spawning command-line tools.
11 $ npm install --save dargs
18 var dargs = require('dargs');
22 hello: true, // results in only the key being used
23 cake: false, // ignored
24 camelCase: 5, // camelCase is slugged to `camel-case`
25 multiple: ['value', 'value2'], // converted to multiple arguments
29 var excludes = ['sad'];
30 var includes = ['camelCase', 'multiple', 'sad'];
32 console.log(dargs(options, excludes));
43 console.log(dargs(options, excludes, includes));
53 console.log(dargs(options, [], includes));
66 ### dargs(options, excludes, includes)
72 Options to convert to command-line arguments.
79 Takes precedence over `includes`.
89 MIT © [Sindre Sorhus](http://sindresorhus.com)