§ Use it

Once installed, call jsoncomb in the terminal with list of a file or folder paths, using globs, for example:

$ jsoncomb --normalise "index.json"
$ jsoncomb -n "data/**/index.json" -i "data/defaults.json"
$ jsoncomb -n "**/*.json" -t

$ jsoncomb -v
$ jsoncomb --version
$ jsoncomb -h
$ jsoncomb --help

§ API - flags

shortlongdescription
-n--normaliseNormalise all files in the given set
-i--ignoreIgnore paths if they contain only placeholder values
-t--tabsUse tabs instead of default 2 spaces for JSON indentation
-v--versionShows the installed version of your json-sort-cli
-h--helpShows (similar to this) help

§ Normalise

$ jsoncomb --normalise "index.json"
$ jsoncomb -n "data/**/index.json" -i "data/defaults.json"

§ Licence

MIT opens in a new tab

Copyright © 2010–2020 Roy Revelt and other contributors

Related packages:

📦 json-variables 8.2.18
Resolves custom-marked, cross-referenced paths in parsed JSON
📦 json-sort-cli 1.16.4
Command line app to deep sort JSON files, retains package.json special key order
📦 json-comb-core 6.6.34
The inner core of json-comb