Skip to content

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.

Notifications You must be signed in to change notification settings

warrensbox/jscheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Go Report Card CircleCI

JSCheck

drawing

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.

Installation

jscheck is available for MacOS and Linux based operating systems.

Homebrew

Installation for MacOS is the easiest with Homebrew. If you do not have homebrew installed, click here.

brew install warrensbox/tap/jscheck

Linux

Installation for other linux operation systems.

curl -L https://raw.githubusercontent.com/warrensbox/jscheck/release/install.sh | bash

Install from source

Alternatively, you can install the binary from source here

How to use:

Without args

drawing

  1. 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.

Specify a directory

drawing

  1. You can also supply the desired directory to walk through as an argument on the command line.
  2. For example, jscheck -d dirname for walk through dirname.

Execute as part of jenkins job

    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()

Issues

Please open issues here: New Issue

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published