json-comb
Command line app to manage sets of JSON files
Last updated a day ago by royston .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install json-comb 
SYNC missed versions from official npm registry.

json-comb

Command line app to manage sets of JSON files

Repository is on GitLab Coverage View dependencies as 2D chart Downloads/Month Code style: prettier MIT License

Table of Contents

Install

npm i -g json-comb

Then, call it from the command line using keyword:

jsoncomb

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

⬆ back to top

API - flags

short long description
-n --normalise Normalise all files in the given set
-i --ignore Ignore paths if they contain only placeholder values
-t --tabs Use tabs instead of default 2 spaces for JSON indentation
-v --version Shows the installed version of your json-sort-cli
-h --help Shows (similar to this) help

⬆ back to top

Normalise

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

Updating it

When you install it globally, it will check occasionally, are there newer versions available, and if so, will show a message nagging you to update. It's the same update notifier that AVA and npm themselves use!

⬆ back to top

Contributing

  • If you see an error, raise an issue.
  • If you want a new feature but can't code it up yourself, also raise an issue. Let's discuss it.
  • If you tried to use this package, but something didn't work out, also raise an issue. We'll try to help.
  • If you want to contribute some code, fork the monorepo via GitLab, then write code, then file a pull request on GitLab. We'll merge it in and release.

In monorepo, npm libraries are located in packages/ folder. Inside, the source code is located either in src/ folder (normal npm library) or in the root, cli.js (if it's a command-line application).

The npm script "dev", the "dev": "rollup -c --dev" builds the development version retaining all console.logs with row numbers. It's handy to have js-row-num-cli installed globally so you can automatically update the row numbers on all console.logs.

⬆ back to top

Licence

MIT License

Copyright (c) 2015-2020 Roy Revelt and other contributors

Current Tags

  • 0.2.56                                ...           latest (a day ago)

58 Versions

  • 0.2.56                                ...           a day ago
  • 0.2.55                                ...           2 months ago
  • 0.2.54                                ...           3 months ago
  • 0.2.53                                ...           3 months ago
  • 0.2.52                                ...           3 months ago
  • 0.2.51                                ...           3 months ago
  • 0.2.50                                ...           3 months ago
  • 0.2.49                                ...           3 months ago
  • 0.2.48                                ...           3 months ago
  • 0.2.47                                ...           3 months ago
  • 0.2.46                                ...           4 months ago
  • 0.2.45                                ...           4 months ago
  • 0.2.44                                ...           4 months ago
  • 0.2.43                                ...           4 months ago
  • 0.2.42                                ...           5 months ago
  • 0.2.41                                ...           5 months ago
  • 0.2.40                                ...           6 months ago
  • 0.2.39                                ...           6 months ago
  • 0.2.38                                ...           6 months ago
  • 0.2.37                                ...           7 months ago
  • 0.2.36                                ...           7 months ago
  • 0.2.35                                ...           8 months ago
  • 0.2.34                                ...           8 months ago
  • 0.2.33                                ...           8 months ago
  • 0.2.32                                ...           8 months ago
  • 0.2.31                                ...           9 months ago
  • 0.2.30                                ...           9 months ago
  • 0.2.29                                ...           9 months ago
  • 0.2.28                                ...           9 months ago
  • 0.2.27                                ...           10 months ago
  • 0.2.26                                ...           10 months ago
  • 0.2.25                                ...           10 months ago
  • 0.2.24                                ...           10 months ago
  • 0.2.23                                ...           10 months ago
  • 0.2.22                                ...           a year ago
  • 0.2.21                                ...           a year ago
  • 0.2.20                                ...           a year ago
  • 0.2.19                                ...           a year ago
  • 0.2.18                                ...           a year ago
  • 0.2.17                                ...           a year ago
  • 0.2.16                                ...           a year ago
  • 0.2.15                                ...           a year ago
  • 0.2.14                                ...           a year ago
  • 0.2.13                                ...           a year ago
  • 0.2.12                                ...           a year ago
  • 0.2.11                                ...           a year ago
  • 0.2.10                                ...           a year ago
  • 0.2.9                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 36
Last Day 36
Last Week 36
Last Month 0
Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |