Node-Stream is a utility library designed to simplify working with Node.js stream APIs by exposing a collection of array-like methods for consuming, creating, and manipulating streams. Originally aiming to resolve common misunderstandings and misuse of Node's core stream interface, it provides methods like `where`, `sort`, `take`, `stringify`, and `intersperse` that return Streams3 instances. The library was built to work with Node.js versions 0.12 and newer, supporting the Streams3 implementation. However, the package, currently at version 1.7.0, was last published approximately 9 years ago (as of April 2026), indicating it is no longer actively maintained and has been effectively abandoned. While it aimed to offer a more accessible API for Node.js streams, its age means it does not support modern Node.js stream features like `stream.promises` or async iterators, nor does it provide ESM compatibility.
npm install node-streamVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates piping a mock readable stream through several `node-stream` utility functions to filter, sort, limit, and format data, finally writing it to standard output. It simulates fetching the 5 most recent posts by a specific author.
Use `const nodeStream = require('node-stream');` for all imports. For projects requiring ESM, consider alternative stream utility libraries that are actively maintained.Migrate to actively maintained stream utility libraries or leverage native Node.js stream capabilities, especially the `stream.promises` API and async iterators for modern asynchronous control flow.
Review Node.js's native `node:stream` module documentation for current best practices, especially the `stream.pipeline` and `stream.promises` APIs for modern asynchronous stream composition and error management.
Change your import statement to `const nodeStream = require('node-stream');` or ensure your project's `package.json` specifies `"type": "module"` and handle CJS interop carefully.Use CommonJS `require` to import the module and access its properties: `const nodeStream = require('node-stream');` then `nodeStream.where(...)` or `const { where } = require('node-stream');`.Ensure that `db` is defined and has a `createReadStream` method that returns a readable stream, or replace it with a standard `fs.createReadStream` or a mock as shown in the quickstart example.
No dependency data recorded yet.