jsonlint
jsonlint copied to clipboard
browser version
right now if you use import jsonlint from 'jsonlint';
e.g. via browserify/babel it doesn't have an export -- there's no export statement in web/ folder
The "main" script of this package is lib/jsonlint.js
should work. Do you use an AMD loader, or is your web page "require
-free", when you load the browserify
bundle?
The file web/jsonlint.js
does not contain a wrapper distinguishing CommonJS environment from web browser. It can be loaded only by a script
element on a web page.
The jsonlint-mod
package can be imported like import jsonlint from 'jsonlint-mod'
for browser