Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jsonlint-check

mcwhittemore5ISCdeprecated0.1.0

This module is now under the @mapbox namespace: install @mapbox/jsonlint-check instead

Check JSON for linted-ness.

readme

Build Status

Check JSON for linted-ness.

JavaScript

var check = require('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