### Install lazystream Package Source: https://github.com/jpommerening/node-lazystream/blob/master/README.md Install the lazystream package using npm. This command saves the package as a dependency in your project. ```bash $ npm install lazystream --save lazystream@1.0.1 node_modules/lazystream └── readable-stream@2.0.5 ``` -------------------------------- ### Create a Lazy Readable Stream Source: https://github.com/jpommerening/node-lazystream/blob/master/README.md Instantiate a new lazy readable stream. The provided function is called when the stream is first accessed to create the actual stream. ```javascript new lazystream.Readable(function (options) { return fs.createReadStream('/dev/urandom'); }); ``` -------------------------------- ### Create a Lazy Writable Stream Source: https://github.com/jpommerening/node-lazystream/blob/master/README.md Instantiate a new lazy writable stream. The provided function is called when the stream is first accessed to create the actual stream. ```javascript new lazystream.Writable(function () { return fs.createWriteStream('/dev/null'); }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.