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 repository shows activity into late 2025, but with no new commits or published updates visible since 2025-09-30, the source appears quiet or in maintenance mode as of 2026-09-10.
- Update cadence appears bursty rather than ongoing, with the most notable change clustered around 2025-09-29 to 2025-09-30 (v2.0.0 and v2.0.1), followed by a long gap.
AI summary generated
Recent updates
v2.0.1
Release 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
Release 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
This 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.