</>PackageGraphPackageGraph

promise-limit

npmv2.7.0

limits 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

16 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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) {
Example truncated — see the full README.

promise-limit vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
promise-limitthis page01ISC8 years ago
p-limit293.1M5MIT1 day ago
throat02MIT1 day ago
p-locate216.9M1MIT1 day ago
node-fetch172.9M9MIT1 day ago
undici158.5M15MIT1 day ago

Dependencies

Declared by promise-limit v2.7.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (12)

chai 4.1.2chai-as-promised 7.1.1eslint *eslint-config-standard 11.0.0eslint-plugin-es5 1.3.1eslint-plugin-import *eslint-plugin-node 7.0.1eslint-plugin-promise 3.8.0eslint-plugin-standard 3.1.0fs-promise 2.0.3lowscore 1.17.0mocha *

Used by

Popular packages that depend on promise-limit.

Relationship graph

Dependencies (left) and dependents (right) of promise-limit.

@libsql/clientpromise-limit
promise-limit dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 92 days apart.

Recent versions of promise-limit
VersionPublishedSizeLicense
2.7.0latest8 years ago16 KBISC
2.6.08 years ago16 KBISC
2.5.09 years agoISC
2.4.09 years agoISC
2.3.010 years agoISC
2.2.010 years agoISC
2.1.110 years agoISC
2.1.010 years agoISC
2.0.010 years agoISC
1.0.010 years agoISC

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

Keywords

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.