← Home

real-require

Keep require and import consistent after bundling or transpiling

1
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

matteo.collinajsumnerswatsonshogun_panda

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
semgrep semgrep:new-function-constructor AI (semgrep): The new Function() call wraps a static import() expression to prevent bundler rewriting — this is the package's core documented purpose, not arbitrary code execution. ai
semgrep semgrep:dynamic-require AI (semgrep): Dynamic require is the package's explicit purpose: a thin wrapper to provide consistent require/import behavior. Caller-controlled module path is by design. ai

Versions (showing 1 of 1)

Version Deps Published
1.0.0 0 / 4