
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
node-stream
Advanced tools
A Stream is a core interface in Node which is generally misunderstood. Since Node doesn't provide a simple API for them, they are very often misused. This library aims to resolve those problems by exposing a collection of array-like methods for working with Node Streams.
Every function in Node-Stream returns an instance of a Streams3 Stream which means you'll be using the latest implementation of Streams. This library works with the latest Streams as well as Node 0.12 Streams.
const nodeStream = require('node-stream');
// Get the 5 most recent posts by stezu
db.createReadStream()
.pipe(nodeStream.where({ type: 'post', author: 'stezu' }))
.pipe(nodeStream.sort((a, b) => a.id > b.id))
.pipe(nodeStream.take(5))
.pipe(nodeStream.stringify())
.pipe(nodeStream.intersperse('\n'))
.pipe(process.stdout);
You can install using npm:
npm install --save node-stream
You can then require()
node-stream:
const nodeStream = require('node-stream');
Documentation can be found at http://stezu.github.io/node-stream/.
FAQs
Utilities for consuming, creating and manipulating node streams.
The npm package node-stream receives a total of 23,830 weekly downloads. As such, node-stream popularity was classified as popular.
We found that node-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.