
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
async-iterator-helpers-ponyfill
Advanced tools
Ponyfill for AsyncIterator class compliant to 'proposal-async-iterator-helpers' proposal.
A ponyfill implementation of the AsyncIterator class compliant with the proposal-async-iterator-helpers.
⚠ Still in development. Not very well tested yet. Do not use in production.
Install the package using npm:
npm install async-iterator-helpers-ponyfill
Import the AsyncIterator class and use its methods to work with asynchronous iterators.
import { AsyncIterator } from 'async-iterator-helpers-ponyfill';
// Example: Using `from` to create an AsyncIterator from an iterator, from an iterable, from an async iterator, or from
// an async iterable.
const asyncIterator = AsyncIterator.from([1, 2, 3, 4]);
// Example: Using `map` to transform values
const mappedIterator = asyncIterator.map(x => Promise.resolve(x * 2));
console.log(await mappedIterator.toArray()); // Output: [2, 4, 6, 8]
AsyncIterator.from(source): Creates an AsyncIterator from an iterable or async iterable.AsyncIterator.fromStream(stream): Creates an AsyncIterator from a ReadableStream.drop(limit): Skips the first limit items.every(predicate): Checks if all items satisfy the predicate.filter(predicate): Filters items based on the predicate.find(predicate): Finds the first item that satisfies the predicate.flatMap(mapper): Maps and flattens items.forEach(callback): Executes a callback for each item.map(mapper): Transforms items using the mapper function.reduce(reducer, initialValue): Reduces items to a single value.some(predicate): Checks if any item satisfies the predicate.take(count): Takes the first count items.toArray(): Converts the iterator to an array.toStream(): Converts the iterator to a ReadableStream.This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Ponyfill for AsyncIterator class compliant to 'proposal-async-iterator-helpers' proposal.
The npm package async-iterator-helpers-ponyfill receives a total of 3 weekly downloads. As such, async-iterator-helpers-ponyfill popularity was classified as not popular.
We found that async-iterator-helpers-ponyfill 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
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.