Lazy Node.js Streams

JSON →
library 1.0.1 ·javascript abandoned
verified May 27, 2026

lazystream is a Node.js utility library designed to address the "too many open files" (EMFILE) error by creating readable and writable streams on demand. Instead of eagerly opening file handles or other resources upon instantiation, it wraps stream creation functions, deferring the actual stream initialization until the stream is actively accessed (e.g., read from, written to, or piped). The current stable version is 1.0.1, released in 2016. The package provides `lazystream.Readable` and `lazystream.Writable` classes, which internally extend Node's `stream.PassThrough` by relying on `readable-stream@2.x` for a stable Streams3 API implementation. This approach allows developers to pass around stream proxies without immediate resource allocation, offering a simple, callback-based mechanism to encapsulate stream creation logic. However, the package is no longer actively maintained.

total hits 10
actors 6 distinct systems
last hit 1d ago AhrefsBot
GPTBot
2
Script
1
ChatGPT-User
1
Search engines
1

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