degenerator
npmv7.0.1Compiles sync functions into async generator functions
Safe to adopt
Yes — degenerator scores well across adoption, maintenance, weight, supply chain, and licensing. 25M downloads per week and 2 known dependents. Last published 157 days ago. 3 releases in the last 2 years.
- AAdoption: grade A, Excellent.
25M downloads per week and 2 known dependents.
- BMaintenance: grade B, Good.
Last published 157 days ago. 3 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 6 transitive packages, about 707 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- 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 degenerator 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.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing degenerator, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 20
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the degenerator README.
function foo() {
return a('bar') || b();
}Dependencies
Declared by degenerator v7.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (3)
Peer (1)
Dev (6)
Used by
Popular packages that depend on degenerator.
Relationship graph
Dependencies (left) and dependents (right) of degenerator.
Frequently installed together
TypeScript definitions for node
An extremely fast JavaScript and CSS bundler and minifier.
Native-ESM powered web dev build tool
Next generation testing framework powered by Vite
🔎 A simple, tiny and lightweight benchmarking library!
A window.fetch polyfill.
Gets the job done when JSON.stringify can't
Snapshotable JavaScript runtime via WebAssembly. QuickJS-NG compiled to WASM with snapshot/restore support.
Parse and lookup IP network blocks
Release history
3 releases in the last two years, typically about 13 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 7.0.1latest | 5 months ago | 27 KB | MIT |
| 7.0.0 | 5 months ago | 26 KB | MIT |
| 6.0.0 | 6 months ago | 26 KB | MIT |
| 5.0.1 | 3 years ago | 26 KB | MIT |
| 5.0.0 | 3 years ago | 26 KB | MIT |
| 4.0.4 | 3 years ago | 25 KB | MIT |
| 4.0.3 | 3 years ago | 25 KB | MIT |
| 4.0.2 | 3 years ago | 25 KB | MIT |
| 4.0.1 | 3 years ago | 25 KB | MIT |
| 4.0.0 | 3 years ago | 25 KB | MIT |
| 3.0.4 | 3 years ago | 18 KB | MIT |
| 3.0.3 | 3 years ago | 18 KB | MIT |
| 3.0.2 | 4 years ago | 18 KB | MIT |
| 3.0.1 | 5 years ago | 18 KB | MIT |
| 3.0.0 | 5 years ago | 18 KB | MIT |
Overview
degenerator is an npm package that compiles sync functions into async generator functions. It is extremely widely used, with about 25M downloads per week and 2 known dependents in the graph. The latest version is 7.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need compiles sync functions into async generator functions and value a battle-tested, widely-adopted 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
- Large, well-established user base (25M weekly downloads).
- 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 degenerator?
Yes — degenerator scores well across adoption, maintenance, weight, supply chain, and licensing. 25M downloads per week and 2 known dependents. Last published 157 days ago. 3 releases in the last 2 years.
How do I install degenerator?
Run `npm install degenerator` to add degenerator to your npm project.
How many dependencies does degenerator have?
degenerator declares 10 direct dependencies and pulls in 6 packages in total once its runtime tree is resolved totalling about 707 KB on disk.
What license is degenerator released under?
degenerator is distributed under the MIT license. Its dependency tree also includes: BSD-2-Clause, BSD-3-Clause.
How popular is degenerator?
degenerator has approximately 24,994,199 downloads per week and 2 known dependent packages.
Is degenerator still maintained?
The most recent release of degenerator (v7.0.1) was published 5 months ago.
Does degenerator run install scripts?
No. degenerator does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.