dargs

Convert an object of options into command-line argument arrays

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Reverse minimist. Convert an object of options into an array of command-line arguments.

Commands

dargs

Examples

Convert a simple object to command-line arguments$ dargs --input '{"foo": "bar", "baz": true}'
Convert object with array values to arguments$ dargs --input '{"files": ["a.txt", "b.txt"], "verbose": true}'
Use with camelCase to kebab-case conversion$ dargs --input '{"someOption": "value", "anotherFlag": true}' --convert-case