Preparing for system design interviews?  Try bugzed.com →

Stream Parser Mixin for Node.js Streams

JSON →
library 0.3.1 ·javascript abandoned
verified Jun 17, 2026

This package, `stream-parser` (version 0.3.1), provides a generic "parser" mixin designed for Node.js `Writable` and `Transform` stream instances and subclasses. It offers a convenient API for byte-level parsing, allowing developers to implement streaming parsers for various binary file formats or network protocols. Key methods include `_bytes(n, cb)` to buffer a specified number of bytes, `_skipBytes(n, cb)` to discard bytes, and `_passthrough(n, cb)` to pass bytes through directly to the readable side of a `Transform` stream. The library was last updated over a decade ago in June 2015, indicating it is no longer actively maintained. Its primary differentiator was providing a low-level, interruptible parsing mechanism by taking control over stream's `_write` or `_transform` callbacks, which was a common pattern in older Node.js stream implementations.

total hits 14
actors 5 distinct systems
last hit 15d ago Googlebot
GPTBot
4
Amazonbot
4
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany