hughsk / maximist

The opposite of minimist: take an object and turn it into an array of command-line arguments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maximist

The opposite of minimist: take an object and turn it into an array of command-line arguments.

Usage

NPM

flags = maximist(args)

Converts the args object into flags. For example, the following:

require('maximist')({
    hello: 'world'
  , spin: false
})

Should yield:

['--hello', 'world', '--no-spin']

See Also

License

MIT. See LICENSE.md for details.

About

The opposite of minimist: take an object and turn it into an array of command-line arguments

License:Other


Languages

Language:JavaScript 100.0%