![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@sweepbright/iter-helpers
Advanced tools
This project provides a collection of helper functions for working with asyncronous iterators in TypeScript.
This project provides a collection of helper functions for working with asyncronous iterators in TypeScript.
To install the package, run the following command:
npm install @sweepbright/iter-helpers
The chain
function is used to create a new instance of the Chain
class. The Chain
class represents a chain of iterable objects, allowing for easy composition and manipulation of iterators.
Overall, chain
provides a convenient way to work with iterable objects and perform operations on them in a chained manner.
Iter
- a convenient interface defining both synchronous and asynchronous iteratorSee the Diagrams for a visual representation of the API.
chain(iter)
- creates a new instance of the Chain
class.pipe(operator)
- transform an iterator using an operator.map(mapFn, errorMapFn)
- applies a function to each element of an iterator.concurrentMap(options, mapFn, errorMapFn)
- applies a function to each element of an iterator concurrently.filter(fn)
- filters elements of an iterator based on a predicate.take(n)
- returns the first n elements of an iterator.skip(n)
- returns the last n elements of an iterator.batch(n)
- splits an iterator into batches of size n
.interval(n)
- splits an iterator into intervals (tuples containing a pair of start and end items) of size n
.flatten()
- flattens an iterator of arrays into an iterator of elements.toArray()
- converts an iterator to an arraynew Fifo(options)
- creates a FIFO queuerange(start, end?, step?)
- creates an iterator of numbersmux(iterators)
- multiplexes multiple iterators into oneFAQs
This project provides a collection of helper functions for working with asyncronous iterators in TypeScript.
The npm package @sweepbright/iter-helpers receives a total of 2,699 weekly downloads. As such, @sweepbright/iter-helpers popularity was classified as popular.
We found that @sweepbright/iter-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.