import-local
Let a globally installed package use a locally installed version of itself if available
2
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
sindresorhus
Keywords
importlocalrequireresolveglobalversionprefercli
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| semgrep | semgrep:dynamic-require | AI (semgrep): Dynamic require is the core mechanism of import-local — it loads package.json from a computed path to resolve the local version. This is expected and intentional behavior for this package. | ai | |
| dependencies | unvetted-dep:resolve-cwd | AI (dependencies): resolve-cwd is a sindresorhus package used for its documented purpose; it is a legitimate and expected dependency for this utility. | ai |
v3.1.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.