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, so a manually published version cannot be tied back to a reviewed commit.
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 |