
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
web-streams-extensions
Advanced tools
A comprehensive collection of helper methods for WebStreams with built-in backpressure support, inspired by ReactiveExtensions
A collection helper methods for WebStreams, inspired by ReactiveExtensions.
npm install web-streams-extensions
import { from, pipe, map, filter, toArray } from 'web-streams-extensions';
// Create a stream from an array and process it
const stream = pipe(
from([1, 2, 3, 4, 5, 6]),
filter(x => x % 2 === 0), // Keep even numbers
map(x => x * 2) // Double them
);
const result = await toArray(stream);
console.log(result); // [4, 8, 12]
⚠️ReadableStreams are not recoverable. If you start and consume a stream, that instance cannot be reused.
from(), of(), timer(), interval(), range(), etc.toArray(), toPromise(), subscribe(), etc.pipe(), retryPipe() for chaining operationsSubject, BehaviorSubject, ReplaySubjectIdleScheduler, FrameSchedulerThis library requires support for:
For older browsers, use the web-streams-polyfill:
import 'web-streams-polyfill/polyfill';
import { from, pipe, map } from 'web-streams-extensions';
We welcome contributions! Please see our Contributing Guide for details.
FAQs
A comprehensive collection of helper methods for WebStreams with built-in backpressure support, inspired by ReactiveExtensions
The npm package web-streams-extensions receives a total of 1,072 weekly downloads. As such, web-streams-extensions popularity was classified as popular.
We found that web-streams-extensions demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.