is-generator-fn
npmv3.0.0Check if something is a generator function
Overview
is-generator-fn is an npm package that check if something is a generator function. The latest version is 3.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need check if something is a generator function and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of is-generator-fn.
Dependencies
Dev (3)
Used by
Popular packages that depend on is-generator-fn.
Alternatives to is-generator-fn
Check if a value is a plain object
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Mutex locks for async functions
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Check if the process is running inside a container (Docker/Podman)
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
Check if the process is running inside a Docker container
Returns true if a string has an extglob.
Media Type Database
Run a function exactly one time
Infer the content-type of a request.
Get details about the current Continuous Integration environment
Frequently installed together
No description provided.
No description provided.
TypeScript definitions for node
No description provided.
No description provided.
Stringify any JavaScript value.
Convert Windows backslash paths to slash paths
No description provided.
A set of utility functions for expect and related packages
No description provided.
TypeScript definitions for stack-utils
Captures and cleans stack traces
Version history
| Version | Published | License |
|---|---|---|
| 3.0.0latest | 5 years ago | MIT |
| 2.1.0 | 7 years ago | MIT |
| 2.0.0 | 7 years ago | MIT |
| 1.0.0 | 10 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install is-generator-fn?
Run `npm install is-generator-fn` to add is-generator-fn to your npm project.
What license is is-generator-fn released under?
is-generator-fn is distributed under the MIT license.
How popular is is-generator-fn?
is-generator-fn has approximately 0 downloads per week and 1 known dependent packages.