Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Create an async iterable from an event emitter.
This module transform an event emitter into an async iterable.
This module is part of Async iterable fun, a complete toolset of modules to work with async iterables.
Transform a node stream into an aync iterable:
const fromEvent = require("ai-event");
import { createReadStream } from "fs";
const stream = createReadStream("aFile", "utf8");
const iterable = fromEvent(stream, "data");
for await (const chunk of iterable) {
console.log(chunk);
}
This will output aFile content
With npm installed, run
npm install --save ai-event
MIT
FAQs
Create an async iterable from an event emitter.
The npm package ai-event receives a total of 6 weekly downloads. As such, ai-event popularity was classified as not popular.
We found that ai-event 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.