1.0.0 • Published 10 years ago

maximist v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

maximist

npm.io npm.io npm.io npm.io

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 yeild:

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

License

MIT. See LICENSE.md for details.