maximist
The opposite of minimist: take an object and turn it into an array of command-line arguments.
Usage
flags = maximist(args)
Converts the args
object into flags
. For example, the following:
hello: 'world'spin: false
Should yeild:
'--hello' 'world' '--no-spin'
License
MIT. See LICENSE.md for details.