API Reference
p-each-series
Iterate over an array in series, awaiting each item before processing the next.
Official Documentation ↗CompatibilityThis documentation covers version
v3.0.0. Check the official docs for the latest API surface.Installation
npm
npm install p-each-seriespnpm
pnpm add p-each-seriesMethods
No methods match this filter.
p-each-series is iterate over an array in series, awaiting each item before processing the next.
Key Features
- resilience: Designed for resilience scenarios with a focused API surface.
Installation
npm install p-each-series
Usage
API reference evidence
Fetched from official sources on 2026-11-08T18:25:00+08:00 via WebFetch https://raw.githubusercontent.com/sindresorhus/p-each-series/main/index.d.ts.
p-each-series.each→ signature from https://raw.githubusercontent.com/sindresorhus/p-each-series/main/index.d.ts; official text: “( input: Iterable<PromiseLike | ValueType>, iterator: (element: ValueType, index: number) => StopSymbol | unknown ): Promise<ValueType[]>;”
FAQ
- How does p-each-series handle concurrency?
- Pass { concurrency: N } in options to cap concurrent operations. Default runs all in parallel.
- Does p-each-series stop on the first rejection?
- Yes, by default the first rejection short-circuits. Use settle variants to collect all outcomes.
- Is p-each-series tree-shakeable?
- Yes, p-each-series ships ESM and named exports, enabling bundlers to tree-shake unused functions.
Report a problem with this API docOpens a pre-filled issue on GitHub.