p-map
Map over promises concurrently (by sindresorhus)
Bluebird
:bird: :zap: Bluebird is a full featured promise library with unmatched performance. (by petkaantonov)
| p-map | Bluebird | |
|---|---|---|
| 3 | 12 | |
| 1,499 | 20,526 | |
| 0.5% | -1.4% | |
| 3.8 | 2.9 | |
| 11 days ago | over 1 year ago | |
| JavaScript | JavaScript | |
| MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
p-map
Posts with mentions or reviews of p-map.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Rethinking Async Loops in JavaScript
If you're going to use a lib like pLimit to limit the concurrency of a map, just use pMap which accepts an argument to limit the concurrency and makes it more readable and straightforward
https://github.com/sindresorhus/p-map?tab=readme-ov-file#usa...
-
Improving JavaScript Performance: Understanding Async Tasks in Arrays
p-map is a lightweight library that helps you handle asynchronous operations on arrays with controlled concurrency. It allows you to map over an array of promises and specify a limit on the number of concurrent operations. This is particularly useful when you need to perform tasks like fetching data from multiple URLs, processing files, or interacting with APIs, as it helps prevent overwhelming your server or exceeding API rate limits. By using p-map, you can strike a balance between speed and resource management, ensuring that your application remains stable and responsive under load.
-
Handling heavy memory tasks asynchronously
p-map
Bluebird
Posts with mentions or reviews of Bluebird.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-09-02.
-
Hidden Classes: The JavaScript performance secret that changed everything
Benedikt Meurer's optimization killers guide shows even more dramatic examples.
-
31 npm packages you can replace with Node.js APIs
19. bluebird (31.9M weekly downloads)
-
Promise: How to Use and Some Notes!
Bluebird is a very good Promise library that provides many utility functions to make working with asynchronous functions easier.
-
Oven: The Company Behind Bun
It might, if the code can be optimized. There are all sorts of reasons why it might not. For example, at one point in time, a switch statement with more than 128 cases could not be optimized.
https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
- what is something you found out way too late. for me it was onclick="history.back();"
-
es6-cheatsheet
Prior to ES6, we used bluebird or Q. Now we have Promises natively:
-
Compiler optimizations that are (or could be) coded against?
For example: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers
-
Rust from 0 to 80% for JavaScript Developers
The standard library is quite barebones so you’ll need to import something else (Think bluebird for JS). You need an executor to run a future. I recommend using https://github.com/tokio-rs/tokio and reading their documentation.
-
When is .then(success, fail) considered an antipattern for promises?
I had a look at the bluebird promise FAQ, in which it mentions that .then(success, fail) is an antipattern. I don't quite understand its explanation as for the try and catch.What's wrong with the following?
-
Mutability of JavaScript
I have not looked into how packages like bluebird does this, but I expect it is similar to the above items I expressed
What are some alternatives?
When comparing p-map and Bluebird you can also consider the following projects:
delay - Delay a promise a specified amount of time
pinkie-promise - Promise ponyfill with pinkie
promise-memoize - Memoize promise-returning functions. Includes cache expire and prefetch.
async - Async utilities for node and the browser
pify - Promisify a callback-style function