jsonlint icon indicating copy to clipboard operation
jsonlint copied to clipboard

browser version

Open niftylettuce opened this issue 9 years ago • 2 comments

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

niftylettuce avatar Jan 22 '16 19:01 niftylettuce

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.

prantlf avatar May 19 '19 04:05 prantlf

The jsonlint-mod package can be imported like import jsonlint from 'jsonlint-mod' for browser

SqrtMinusOne avatar Jan 01 '20 15:01 SqrtMinusOne