The jscheck
command line tool looks for json files and check's its validity.
Sometimes not all our json files end with a .json
extension. jscheck
tries to figure out if your file has is a json format before linting.
The installation is minimal and easy.
jscheck
is available for MacOS and Linux based operating systems.
Installation for MacOS is the easiest with Homebrew. If you do not have homebrew installed, click here.
brew install warrensbox/tap/jscheck
Installation for other linux operation systems.
curl -L https://raw.githubusercontent.com/warrensbox/jscheck/release/install.sh | bash
Alternatively, you can install the binary from source here
- By typing the command
jscheck
on your terminal, it walks through all your current directory and sub-directory to determine any errors in json formatted files.
The most recently selected versions are presented at the top of the dropdown.
- You can also supply the desired directory to walk through as an argument on the command line.
- For example,
jscheck -d dirname
for walk throughdirname
.
sh """\
#!/bin/bash
eval "\$(chef shell-init bash)"
echo install jscheck
wget https://raw.githubusercontent.com/warrensbox/jscheck/release/install.sh
chmod 755 install.sh
./install.sh -b installs
./installs/jscheck
""".stripIndent()
Please open issues here: New Issue