is-generator-function
Determine if a function is a native generator function.
3
Versions
MIT
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
ljharb
Keywords
generatorgenerator functiones6es2015yieldfunctionfunction*
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| dependencies | unvetted-dep:safe-regex-test | AI (dependencies): safe-regex-test is a well-known ljharb/inspect-js ecosystem package; its use here is legitimate and expected for this package's functionality. | ai | |
| provenance | no-provenance | AI (provenance): ljharb's packages consistently lack Sigstore provenance; this is a known pattern for this publisher and not a security concern given their strong track record. | ai |
v1.1.1
1 finding
INFO
No provenance attestation
provenance
[Accepted risk] Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.0.10
1 finding
INFO
No provenance attestation
provenance
[Accepted risk] Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.