generator-function is a small JavaScript module that exposes the normally hidden GeneratorFunction constructor when it is available in the runtime. It is useful for creating generator functions dynamically, then calling them to get an iterator.
Project status
- The project appears actively maintained in the short term, with recent activity on GitHub (latest push on 2025-09-30) and back to back version updates (v2.0.0 on 2025-09-29, v2.0.1 on 2025-09-30).
- The apparent update cadence is fast around the latest change set, with roughly a 1 day gap between v2.0.0 and v2.0.1, after a long earlier gap since v1.0.0 (2015-10-11).
AI summary generated Today
Recent updates
v2.0.1
8 months agoRelease v2.0.1 does not appear to include any runtime or API changes. The diff shows only metadata updates, including the package version and the repository/homepage/issue URLs, plus corresponding README badge links.
v2.0.0
8 months agoRelease v2.0.0 introduces a major refactor of the package API, adding ESM entry points and TypeScript typings. The implementation now exports a callable function that returns the `GeneratorFunction` constructor (or a sentinel value), instead of exporting the constructor directly.
Featuresv1.0.0
10/11/2015This release (v1.0.0) has no release notes provided by the publisher. As a result, there is no documented information about new features, bug fixes, breaking changes, or security updates in the available materials.