throat
npmv6.0.2Throttle 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.
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 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... */
});throat 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 |
|---|---|---|---|---|
| throatthis page | 0 | 2 | MIT | 3 years ago |
| p-limit | 293.1M | 5 | MIT | 1 day ago |
| p-map | 0 | 1 | MIT | 1 day ago |
| lie | 0 | 1 | MIT | 1 day ago |
| promise-limit | 0 | 1 | ISC | 1 day ago |
| p-locate | 216.9M | 1 | MIT | 1 day ago |
Dependencies
Declared by throat v6.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (8)
Used by
Popular packages that depend on throat.
Relationship graph
Dependencies (left) and dependents (right) of throat.
Frequently installed together
TypeScript definitions for node
wasm module for swc
ECMAScript parser
The ultimate javascript content-type utility.
React is a JavaScript library for building user interfaces.
Lodash modular utilities.
A JavaScript text diff implementation.
Promise based HTTP client for the browser and node.js
ECMAScript (ESTree) AST walker
A JavaScript parser built from the Hermes engine
Parse yes/no like values
🚇 Metro's core package.
Release history
No releases in the last two years, typically about 216 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.0.2latest | 3 years ago | 8.9 KB | MIT |
| 6.0.1 | 5 years ago | 8.9 KB | MIT |
| 6.0.0 | 5 years ago | 7.8 KB | MIT |
| 5.0.0 | 7 years ago | 8.7 KB | MIT |
| 4.1.0 | 9 years ago | — | MIT |
| 4.0.0 | 9 years ago | — | MIT |
| 3.2.0 | 9 years ago | — | MIT |
| 3.1.0 | 9 years ago | — | MIT |
| 3.0.0 | 10 years ago | — | MIT |
| 2.0.2 | 11 years ago | — | MIT |
| 2.0.1 | 11 years ago | — | MIT |
| 2.0.0 | 11 years ago | — | MIT |
| 1.0.0 | 13 years ago | — | MIT |
| 0.0.0 | 13 years ago | — | MIT |
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
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.