promise-limit
npmv2.7.0limits calls to functions that return promises
Not recommended for new projects
No — promise-limit should not be adopted for new projects. Last published 2966 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 2966 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 16 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding promise-limit to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the promise-limit README.
var promiseLimit = require('promise-limit')
var limit = promiseLimit(2)
var jobs = ['a', 'b', 'c', 'd', 'e']
Promise.all(jobs.map((name) => {
return limit(() => job(name))
})).then(results => {
console.log()
console.log('results:', results)
})
function job (name) {promise-limit vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| promise-limitthis page | 0 | 1 | ISC | 8 years ago |
| p-limit | 293.1M | 5 | MIT | 1 day ago |
| throat | 0 | 2 | MIT | 1 day ago |
| p-locate | 216.9M | 1 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
| undici | 158.5M | 15 | MIT | 1 day ago |
Dependencies
Declared by promise-limit v2.7.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (12)
Used by
Popular packages that depend on promise-limit.
Relationship graph
Dependencies (left) and dependents (right) of promise-limit.
Frequently installed together
Prettier is an opinionated code formatter
Delightful JavaScript Testing.
TypeScript definitions for node
Seamless REST/GraphQL API mocking library for browser and Node.js.
A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node
libSQL driver for TypeScript and JavaScript
Hrana client for connecting to sqld over HTTP or WebSocket
Yet another Base64 transcoder in pure-JS
Release history
No releases in the last two years, typically about 92 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.7.0latest | 8 years ago | 16 KB | ISC |
| 2.6.0 | 8 years ago | 16 KB | ISC |
| 2.5.0 | 9 years ago | — | ISC |
| 2.4.0 | 9 years ago | — | ISC |
| 2.3.0 | 10 years ago | — | ISC |
| 2.2.0 | 10 years ago | — | ISC |
| 2.1.1 | 10 years ago | — | ISC |
| 2.1.0 | 10 years ago | — | ISC |
| 2.0.0 | 10 years ago | — | ISC |
| 1.0.0 | 10 years ago | — | ISC |
Overview
promise-limit is an npm package that limits calls to functions that return promises. It has 1 known dependents in the graph. The latest version is 2.7.0, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need limits calls to functions that return promises and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (ISC).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use promise-limit?
No — promise-limit should not be adopted for new projects. Last published 2966 days ago.
How do I install promise-limit?
Run `npm install promise-limit` to add promise-limit to your npm project.
What license is promise-limit released under?
promise-limit is distributed under the ISC license.
How popular is promise-limit?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on promise-limit.
Is promise-limit still maintained?
The most recent release of promise-limit (v2.7.0) was published 8 years ago.
Does promise-limit run install scripts?
No. promise-limit does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.