{"library":"lazystream","type":"library","category":null,"description":"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.","language":"javascript","status":"abandoned","version":"1.0.1","tags":["javascript","emfile","lazy","streams","stream"],"last_verified":"Wed May 27","install":[{"cmd":"npm install lazystream","imports":["const { Readable } = require('lazystream');","const { Writable } = require('lazystream');","const lazystream = require('lazystream');"]},{"cmd":"yarn add lazystream","imports":[]},{"cmd":"pnpm add lazystream","imports":[]}],"homepage":null,"github":"https://github.com/jpommerening/node-lazystream","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/lazystream","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/lazystream/compatibility"}}