import-from
Import a module like with `require()` but from a given path
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
sindresorhus
Keywords
requireresolvepathmodulefromlikeimportpath
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 explicit, documented purpose of import-from — it resolves and imports modules from a given path. This is not a security risk for this package. | ai | |
| source-diff | source-size-tripled | AI (source-diff): Size increase is due to addition of TypeScript type definitions (index.d.ts), not injected payloads. Benign for this package. | ai |
v3.0.0
1 finding
LOW
No provenance attestation
provenance
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.