
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@swimburger/isomorphic-streams
Advanced tools
Isomorphic WHATWG Streams API package for browser and Node.js. Forked from https://github.com/ksm2/isomorphic-streams
Isomorphic WHATWG Streams API package for browser and Node.js
This package has
ReadableStream
, WritableStream
and TransformStream
Use either
yarn add isomorphic-streams
or
npm install isomorphic-streams
In the browser: Instead of using the global ReadbaleStream
or window.ReadableStream
, import from this package instead.
In Node.js: Instead of importing node:stream/web
or requiring stream/web
, import from this package instead.
The following code will work in both Node.js and the browser:
import { ReadableStream } from "isomorphic-streams";
const SECOND = 1000;
const stream = new ReadableStream({
start(controller) {
setInterval(() => {
controller.enqueue(Date.now());
}, SECOND);
},
});
for await (const value of stream) {
console.log(value);
}
This project is open to feedback and contributions, please open an issue.
isomorphic-streams
follows the Contributor Covenant Code of Conduct.
MIT © 2021 Konstantin Möllers, see LICENSE.
FAQs
Isomorphic WHATWG Streams API package for browser, Node.js, and other runtimes. Forked from https://github.com/ksm2/isomorphic-streams
We found that @swimburger/isomorphic-streams 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.