
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
web-stream-transform
Advanced tools
Functional transform helpers for Web Streams — map, filter, take, batch, and tap
Functional transform helpers for Web Streams — map, filter, take, batch, and tap
npm install web-stream-transform
import {mapStream, filterStream, takeStream, batchStream, tapStream} from 'web-stream-transform';
const result = ReadableStream.from([1, 2, 3, 4, 5, 6])
.pipeThrough(filterStream(x => x % 2 === 0))
.pipeThrough(mapStream(x => x * 10))
.pipeThrough(takeStream(2));
// Yields: 20, 40
Returns a TransformStream that applies function_ to each chunk.
Returns a TransformStream that only passes chunks where function_ returns true.
Returns a TransformStream that passes only the first count chunks then terminates.
Returns a TransformStream that collects chunks into arrays of size, flushing any remainder on close.
Returns a TransformStream that calls function_ for side effects but passes chunks through unchanged.
MIT
FAQs
Functional transform helpers for Web Streams — map, filter, take, batch, and tap
The npm package web-stream-transform receives a total of 3 weekly downloads. As such, web-stream-transform popularity was classified as not popular.
We found that web-stream-transform 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.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.