Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/maximist
The opposite of minimist: take an object and turn it into an array of command-line arguments
https://github.com/hughsk/maximist
Last synced: 12 days ago
JSON representation
The opposite of minimist: take an object and turn it into an array of command-line arguments
- Host: GitHub
- URL: https://github.com/hughsk/maximist
- Owner: hughsk
- License: other
- Created: 2014-11-06T07:17:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-08-18T04:26:47.000Z (about 5 years ago)
- Last Synced: 2024-04-26T18:22:11.414Z (7 months ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# maximist
![](http://img.shields.io/badge/stability-experimental-orange.svg?style=flat)
![](http://img.shields.io/npm/v/maximist.svg?style=flat)
![](http://img.shields.io/npm/dm/maximist.svg?style=flat)
![](http://img.shields.io/npm/l/maximist.svg?style=flat)The opposite of minimist: take an object and turn it into an array of
command-line arguments.## Usage
[![NPM](https://nodei.co/npm/maximist.png)](https://nodei.co/npm/maximist/)
### `flags = maximist(args)`
Converts the `args` object into `flags`. For example, the following:
``` javascript
require('maximist')({
hello: 'world'
, spin: false
})
```Should yield:
``` javascript
['--hello', 'world', '--no-spin']
```## See Also
* [dargs](https://github.com/sindresorhus/dargs)
## License
MIT. See [LICENSE.md](http://github.com/hughsk/maximist/blob/master/LICENSE.md) for details.