0.0.6 • Published 7 years ago

json-flag v0.0.6

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

json-flag

styled with prettier npm version

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
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago