delete-node-require-cache
v1.9.0
Published
delete NodeJS require cache
Downloads
2,031
Maintainers
Readme
English | 简体中文
delete-node-require-cache
NodeJs loads js scripts file with a cache for performance reasons, but sometimes cache can be a problem when we need NodeJs to load new changes of the js file in real time, and this package will remove the cache of the specified js file, and also will parse the content and analyse the dependent js file inside and remove the relevant cache
import { delRequireCache } from 'delete-node-require-cache'
delRequireCache(jsFilePath)