← Home

require_optional

Allows you declare optionalPeerDependencies that can be satisfied by the top level module but ignored if they are not.

2
Versions
Apache-2.0
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

christkv

Keywords

optionalrequireoptionalPeerDependencies

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
semgrep semgrep:dynamic-require AI (semgrep): require_optional's core purpose is dynamic optional module loading; dynamic require() is intentional and expected throughout this package. ai

Versions (showing 2 of 2)

Version Deps Published
1.0.1 2 / 4
1.0.0 2 / 4

v1.0.1

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v1.0.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.