Checks if a given value is a generator function. This package offers a reliable way to determine if a JavaScript function possesses the characteristics of a generator, distinguishing it from regular functions. Helpful for metaprogramming or when needing to treat generator functions differently. Provides accurate results across various JavaScript environments. Lightweight and dependency-free, making it easily integrated into any project.
The npm package is-generator has infrequent releases. Initial development occurred in 2014, with a few versions released. There was a small burst of activity in 2015. The last release was in March 2016. Since then, there have been no further updates, indicating a period of inactivity spanning over nine years.
The npm package 'is-generator' experienced fluctuating downloads between March 2024 and August 2025, generally trending upwards. The peak was in February 2025 with over 4.2 million downloads. Downloads in September 2025 have reached 443,864, but the month is still in progress.