delete-node-require-cache
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

English | 简体中文

delete-node-require-cache

NPM version NPM Weekly Downloads License

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)

Package Sidebar

Install

npm i delete-node-require-cache

Weekly Downloads

188

Version

1.9.0

License

MIT

Unpacked Size

6.71 kB

Total Files

5

Last publish

Collaborators

  • gintamamadao