Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
async-iterable-map
Advanced tools
Readme
Transforms items of an async iterable concurrently
Like p-map
but for AsyncIterable
s.
If you like this package, be sure to star its repo, and please consider donating.
import { map } from "async-iterable-map"
Generic type parameters:
T = unknown
- type of input elementsU = unknown
- type of output elementsParameters:
source: AsyncIterable<T> | Iterable<T>
- the iterable to transformtransform: (element: T) => Promise<U> | U
- the transform / mapping function from the input to the outputoptions.concurrency: number
- how many elements to transform concurrently. Must be a positive integer or Infinity
. Default: Infinity
Returns:
AsyncIterableIterator<U> & PromiseLike<U[]>
AsyncIterableIterator<U>
interface to iterate through the remaining output elements one by one.PromiseLike<U[]>
interface to get all of the remaining output elements.Both interfaces return the output elements in order.
Transforms items of an async iterable concurrently.
FAQs
Transforms items of an async iterable concurrently
We found that async-iterable-map 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.