Decache is a straightforward Node.js module that simplifies the process of removing a module from the require.cache. This is useful in testing scenarios or when you need to reload a module. It accepts a module's file path or module object as input and clears it from Node's module cache, ensuring that the next require() fetches a fresh copy. Decache offers both synchronous and asynchronous options.
The npm package decache had an initial burst of releases in July 2015, followed by sporadic releases. The release frequency decreased significantly after 2018, with only a few versions released in 2020, 2021 and 2023. There have been no releases in 2024 or so far in 2025.
Decache npm package downloads show steady growth from March 2024 to August 2025, peaking at over 7.5 million in July 2025. September 2025 downloads are significantly lower, likely due to the month being incomplete. The package generally averages between 4 and 7 million downloads per month.