Skip to content
JS
Package

is-generator-function

Determine if a function is a native generator function.

v1.1.2, 30 Sept 2025MITCommonJSTypes: Bundled
$ npm install is-generator-function

Key numbers

As of 25 Sept 2026
Weekly downloads
67.6m
+85% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
5
Direct, from package.json
Last release
11 months ago
v1.1.2
GitHub stars
48
11 forks
Open issues / PRs
2 / 1
Contributors
3
Commits, last 52 weeks
7

Downloads

Last week 2026-09-15 to 2026-09-21
025m50m75m100mSept 2025Mar 2026Sept 2026High 92.1m (25 Aug 2026)Low 26.8m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

67,562,978 downloads last week, 332,961,718 in the last month. The 12-month change of +85% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
215 in total
Latest version
1.1.2, 30 Sept 202511 months ago
First published
10 Feb 2014
Last push to GitHub
30 Dec 2025269 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
1
Commits, last 52 weeks
7
Dependents on npm
786

Major versions

  1. v1 first release 1.0.0, 9 Aug 2014
  2. v0 first release 0.0.0, 10 Feb 2014

Recent releases

VersionPublished
1.1.230 Sept 2025
1.1.129 Sept 2025
1.1.02 Jan 2025
1.0.106 Aug 2021
1.0.96 May 2021
1.0.82 Dec 2020
1.0.728 Dec 2017
1.0.620 Dec 2016
1.0.420 Dec 2016
1.0.520 Dec 2016
1.0.331 Jan 2015
1.0.220 Jan 2015
1.0.115 Dec 2014
1.0.09 Aug 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
35 kB
Dependencies (5)
get-protocall-boundhas-tostringtagsafe-regex-testgenerator-function
npm install is-generator-function
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-generator-function@1.1.2/
  • unpkghttps://unpkg.com/is-generator-function@1.1.2/
  • esm.shhttps://esm.sh/is-generator-function@1.1.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.