0.0.6 • Published 7 years ago
json-flag v0.0.6
json-flag
Install
npm i -g json-flag
# No need to use `npx`
Usage
Prepare .json
(strictly json5). For example, create it as example.json
,
{
"string": "foo",
"number": 1,
"array-string": [
"foo",
"bar",
"baz"
],
"object": {
"foo": "bar"
}
}
Pass this .json
to the command. Then,
json-flag ./example.json
# --string foo --number 1 --array-string foo,bar,baz
Help
json-flag --help