
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
fast-json-parser
Advanced tools
Fast incremental (streaming) JSON parser for node
At the moment, its about 3 times slower than buffering a node stream then parsing it with JSON.parse
However, its about 3 times faster than oboe.js as well.
Currently works on valid JSON, however it also accepts invalid JSON.
Check out the benchmarks in the perf dir
$ node perf/big-bench.js
testJSONParse: 858.689ms
testOboe: 7263.890ms
testFastJsonParser: 2529.559ms
A static convenience method is available for node streams:
import { Parser } from "fast-json-parser";
async function test() {
let result = await Parser.parseStream(stream);
console.log(result);
}
Or you can use the raw API:
import { Parser } from "fast-json-parser";
function parseStream(stream) {
return new Promise(resolve => {
let p = new Parser();
p.init();
stream.on("data", data => p.push(data));
stream.on("end", () => resolve(p.value));
});
}
Install typescript then simply run tsc from the base dir
forbid:
test:
MIT
FAQs
Fast incremental json parser
The npm package fast-json-parser receives a total of 2 weekly downloads. As such, fast-json-parser popularity was classified as not popular.
We found that fast-json-parser 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.