Skip to content
JS
Package

generator-function

A function that returns the normally hidden `GeneratorFunction` constructor

v2.0.1, 30 Sept 2025MITESM + CommonJSTypes: None
$ npm install generator-function

Key numbers

As of 25 Sept 2026
Weekly downloads
53.3m
+456% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
11 months ago
v2.0.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 71.9m (25 Aug 2026)Low 542.6k (23 Sept 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

53,251,274 downloads last week, 241,721,439 in the last month. The 12-month change of +456% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
23 in total
Latest version
2.0.1, 30 Sept 202511 months ago
First published
11 Oct 2015
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
25

Major versions

  1. v2 first release 2.0.0, 29 Sept 2025
  2. v1 first release 1.0.0, 11 Oct 2015

Recent releases

VersionPublished
2.0.130 Sept 2025
2.0.029 Sept 2025
1.0.011 Oct 2015
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
9.8 kB
Dependencies (0)
None
npm install generator-function
  • jsDelivrhttps://cdn.jsdelivr.net/npm/generator-function@2.0.1/
  • unpkghttps://unpkg.com/generator-function@2.0.1/
  • esm.shhttps://esm.sh/generator-function@2.0.1
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.