import-fresh busts the module cache and imports a fresh copy of a Node.js module. This is useful for testing, avoiding stale data, or when you need a truly new instance of a module. It invalidates the require.cache entry, forcing Node.js to reload the module from disk on subsequent require or import calls. import-fresh offers a simple and reliable way to work around module caching.
The npm package import-fresh has had sporadic releases. Initial releases occurred in 2017. There were several releases in 2018 and 2019. Releases slowed significantly after 2020, with only one release each in November and December. After that, there was an almost four-year lull. The most recent release was in February 2025, with version 3.3.1. No releases have occurred since February 2025.
Import-fresh npm package downloads show a generally increasing trend from March 2024 to August 2025, peaking in June and July 2025. September 2025 downloads are significantly lower, likely due to incomplete data for the month as today is September 10th.