← Home

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.

SourceRuleReasonAccepted byWhen
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

Versions (showing 2 of 2)

Version Deps Published
3.2.0 2 / 5
3.1.0 2 / 5

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.