{"library":"decache","type":"library","category":null,"description":"decache is a lightweight utility (v4.6.2, stable, low maintenance) that deletes a module from Node.js require.cache, enabling fresh require() calls for testing or hot-reloading. It works with .js, .json, and other extensions, but ignores native .node modules. Unlike alternatives that require hacking require.cache directly, decache handles edge cases (e.g., parent module references) and includes TypeScript definitions. Released under MIT, with a small footprint and no dependencies.","language":"javascript","status":"active","version":"4.6.2","tags":["javascript","delete","node.js","require","cache","uncache","un-require","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install decache","imports":["import decache from 'decache'","import decache from 'decache'","const decache = require('decache')"]},{"cmd":"yarn add decache","imports":[]},{"cmd":"pnpm add decache","imports":[]}],"homepage":"https://github.com/dwyl/decache#readme","github":"https://github.com/dwyl/decache","docs":null,"changelog":null,"pypi":null,"npm":"decache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}