</>PackageGraphPackageGraph

degenerator

npmv7.0.1

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

3
Direct dependencies

Runtime packages this one declares itself.

6
Total installed

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

707 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

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

BSD-2-ClauseBSD-3-Clause

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)

Dev (6)

@types/escodegen ^0.0.7@types/esprima ^4.0.3@types/node ^22.13.0quickjs-wasi ^2.2.0tsconfig 0.0.0typescript ^5.1.6

Used by

Popular packages that depend on degenerator.

Relationship graph

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

escodegenesprimaquickjs-wasipac-resolverdegenerator
degenerator dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 13 days apart.

Recent versions of degenerator
VersionPublishedSizeLicense
7.0.1latest5 months ago27 KBMIT
7.0.05 months ago26 KBMIT
6.0.06 months ago26 KBMIT
5.0.13 years ago26 KBMIT
5.0.03 years ago26 KBMIT
4.0.43 years ago25 KBMIT
4.0.33 years ago25 KBMIT
4.0.23 years ago25 KBMIT
4.0.13 years ago25 KBMIT
4.0.03 years ago25 KBMIT
3.0.43 years ago18 KBMIT
3.0.33 years ago18 KBMIT
3.0.24 years ago18 KBMIT
3.0.15 years ago18 KBMIT
3.0.05 years ago18 KBMIT

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.