
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A JSON module with Actually Useful parse errors by jshint, *and* support for callbacks! But mostly the parse errors.
JSON-san, you much parse error!

json-san is a json module that works pretty much like the built-in JSON object EXCEPT:
npm install json-san
Here's an example of the more useful error messages:
> require("./lib/json-san").parse("[ 'foo' ]")
Error:
* line 1, col 4, Strings must use doublequote.
1 error
at Object.parse (/home/josh/jsonhint/lib/json-san.js:22:13)
at [object Context]:1:27
at Interface.<anonymous> (repl.js:171:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream.<anonymous> (readline.js:73:12)
at ReadStream.emit (events.js:81:20)
at ReadStream._emitKey (tty_posix.js:307:10)
See? Now you know where the mistake is!
Now here's an example of using a callback with stringify (which of course doesn't have jshint integration):
> require("./lib/json-san").stringify(["foo"], function (err, json) {
... if (err) {
... throw err;
... } else {
... console.log(json);
... }
... });
["foo"]
npm test
If you like what you see (or don't quite like what you see), I heartily invite you to dig in, fork it up and git push it good.
MIT.
FAQs
A JSON module with Actually Useful parse errors by jshint, *and* support for callbacks! But mostly the parse errors.
We found that json-san demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.