https://github.com/codelicia/jsoncs
JSONCS - JSON Code Style
https://github.com/codelicia/jsoncs
code-sniffer code-styles json
Last synced: about 2 months ago
JSON representation
JSONCS - JSON Code Style
- Host: GitHub
- URL: https://github.com/codelicia/jsoncs
- Owner: codelicia
- License: mit
- Created: 2019-08-22T14:18:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-19T16:35:39.000Z (2 months ago)
- Last Synced: 2026-01-19T22:49:26.200Z (2 months ago)
- Topics: code-sniffer, code-styles, json
- Language: JavaScript
- Size: 490 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JSON Code Style
=========
[](https://www.npmjs.org/package/@codelicia/jsoncs)

## Command line interface
Install jsoncs with npm to use the command line interface:
npm install @codelicia/jsoncs --save-dev
Verify if the code style is fine:
./node_modules/.bin/jsoncs 'my/file.json'
or to multiple files
./node_modules/.bin/jsoncs 'my/*.json'
Fix the code style of a file or multiple files:
./node_modules/.bin/jsoncs --fix 'my/directory/*'
### Options
$ jsoncs -h
Usage: jsoncs [file]
Options:
-f, --fix fix json file
-q, --quiet quiet mode
-v, --version json code style version
-s, --spaces quantity of spaces to indent the json (default: 2)
### Example
* _RED_: wrong json
* _BLUE_: correct json
