import-fresh
npmv4.0.0TypeScriptImport a module while bypassing the cache
Safe to adopt
Yes — import-fresh scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 197 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 197 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 30 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding import-fresh to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=22.15
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the import-fresh README.
// foo.js
let count = 0;
export default function increment() {
count += 1;
return count;
}import-fresh vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| import-freshthis page | 0 | 2 | MIT | 6 months ago |
| resolve-cwd | 0 | 1 | MIT | 1 day ago |
| resolve-from | 0 | 8 | MIT | 1 day ago |
| esm | 6.2M | 5 | MIT | 1 day ago |
| fresh | 0 | 3 | MIT | 1 day ago |
| import-local | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by import-fresh v4.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on import-fresh.
Relationship graph
Dependencies (left) and dependents (right) of import-fresh.
Frequently installed together
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Next generation testing framework powered by Vite
TypeScript definitions for node
Istanbul coverage provider for Vitest
Get paths for storing things like data, config, cache, etc
Parse JSON with more helpful errors
Release history
2 releases in the last two years, typically about 354 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.0latest | 6 months ago | 30 KB | MIT |
| 3.3.1 | 1 year ago | 4.6 KB | MIT |
| 3.3.0 | 5 years ago | 4.8 KB | MIT |
| 3.2.2 | 5 years ago | 4.8 KB | MIT |
| 3.2.1 | 6 years ago | 4.7 KB | MIT |
| 3.2.0 | 6 years ago | 4.5 KB | MIT |
| 3.1.0 | 7 years ago | 4.4 KB | MIT |
| 3.0.0 | 7 years ago | 3.6 KB | MIT |
| 2.0.0 | 9 years ago | — | MIT |
Overview
import-fresh is an npm package that import a module while bypassing the cache. It has 2 known dependents in the graph. The latest version is 4.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need import a module while bypassing the cache and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use import-fresh?
Yes — import-fresh scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 197 days ago. 2 releases in the last 2 years.
How do I install import-fresh?
Run `npm install import-fresh` to add import-fresh to your npm project.
What license is import-fresh released under?
import-fresh is distributed under the MIT license.
How popular is import-fresh?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on import-fresh.
Is import-fresh still maintained?
The most recent release of import-fresh (v4.0.0) was published 6 months ago.
Does import-fresh run install scripts?
No. import-fresh does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.