</>PackageGraphPackageGraph

throat

npmv6.0.2

Throttle the parallelism of an asynchronous (promise returning) function / functions

Not recommended for new projects

No — throat should not be adopted for new projects. Last published 1345 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1345 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 8.9 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — 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 throat 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.

8.9 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 throat README.

const throat = require('throat')(2);

const resA = throat(async () => {
  /* async stuff... */
});
const resB = throat(async () => {
  /* async stuff... */
});
const resC = throat(async () => {
  /* async stuff... */
});
const resD = throat(async () => {
  /* async stuff... */
});
Example truncated — see the full README.

throat vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
throatthis page02MIT3 years ago
p-limit293.1M5MIT1 day ago
p-map01MIT1 day ago
lie01MIT1 day ago
promise-limit01ISC1 day ago
p-locate216.9M1MIT1 day ago

Dependencies

Declared by throat v6.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (8)

coveralls ^3.0.0istanbul ^0.4.5jest ^22.1.4promise ^8.0.0sauce-test ^1.0.0test-result ^2.0.0testit ^3.1.0typescript ^3.4.5

Used by

Popular packages that depend on throat.

Relationship graph

Dependencies (left) and dependents (right) of throat.

ts-nodemetrothroat
throat dependencies dependents

Frequently installed together

Release history

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

Recent versions of throat
VersionPublishedSizeLicense
6.0.2latest3 years ago8.9 KBMIT
6.0.15 years ago8.9 KBMIT
6.0.05 years ago7.8 KBMIT
5.0.07 years ago8.7 KBMIT
4.1.09 years agoMIT
4.0.09 years agoMIT
3.2.09 years agoMIT
3.1.09 years agoMIT
3.0.010 years agoMIT
2.0.211 years agoMIT
2.0.111 years agoMIT
2.0.011 years agoMIT
1.0.013 years agoMIT
0.0.013 years agoMIT

Overview

throat is an npm package that throttle the parallelism of an asynchronous (promise returning) function / functions. It has 2 known dependents in the graph. The latest version is 6.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need throttle the parallelism of an asynchronous (promise returning) function / functions 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 (MIT).

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 throat?

No — throat should not be adopted for new projects. Last published 1345 days ago.

How do I install throat?

Run `npm install throat` to add throat to your npm project.

What license is throat released under?

throat is distributed under the MIT license.

How popular is throat?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on throat.

Is throat still maintained?

The most recent release of throat (v6.0.2) was published 3 years ago.

Does throat run install scripts?

No. throat does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.