Overview
sindresorhus/p-map
Last analyzed 6/13/2026, 11:57:13 AM · default branch main
★ 1,49969 forksJavaScript12 open issues
Summary
p-map is a JavaScript utility for mapping over asynchronous iterables with controlled concurrency. It exposes `pMap` and `pMapIterable` to process promise-returning operations in parallel while letting consumers set concurrency caps and configure whether to stop on the first error or continue. It fills the gap when `Promise.all()` is too eager and sequential `for...await` is too slow, giving precise control over throughput in async iteration workflows.
Features
1
Owners
18
Issues
0
Requests
6
Recent requests
View all 6 →Architecture
- p-mapshared
Maps over asynchronous inputs concurrently via `pMap` and `pMapIterable`, letting consumers control concurrency limits and decide whether to stop on errors.
Top owners
- Sindre Sorhus43 commits
- Richie Bendall4 commits
- Harold Hunt3 commits
- Noam Okman2 commits
- Merilynn Bandy2 commits