File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,9 +39,18 @@ Then in code:
3939JSON.minify = JSON.minify || require("node-json-minify");
4040
4141var myjson = JSON.minify( '{ /* comment */ "foo": 42 \n }' ); // {"foo":42}
42+
43+ ----------
44+
45+ For in-browser use, you may download from the jsDelivr CDN:
46+ <script src='//cdn.jsdelivr.net/json-minify/latest/minify.json.min.js'></script>
47+ or to use Kit's fork:
48+ <script src='//cdn.jsdelivr.net/json-minify/latest/minify-sans-regexp.min.js'></script>
4249----------
4350
4451NOTE: As transmitting bloated (ie, with comments/whitespace) JSON would be wasteful
45- and silly, this JSON.minify() is intended for use in server-side processing
52+ and silly, this JSON.minify() is intended for: server-side processing
4653environments where you can strip comments/whitespace from JSON before parsing
4754a JSON document, or before transmitting such over-the-wire from server to browser.
55+ Also helpful during development, where your source is formmated & commented,
56+ then deploy a minified version.
You can’t perform that action at this time.
0 commit comments