Skip to content

isabella232/jsonlint-check

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Check JSON for linted-ness.

JavaScript

var check = require('@mapbox/jsonlint-check');
var json = '{"foo":"bar","baz":"bin"}';

if (check(json, 2, false)) {
    console.error('json is linted with 2 space indents');
} else {
    console.error('json is not linted');
}

CLI

See USAGE.txt

Tests

npm test

About

Check JSON for linted-ness.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%