https://github.com/lsongdev/purge-require-cache
Remove module instance from `require.cache`
https://github.com/lsongdev/purge-require-cache
module module-pattern module-system
Last synced: 6 months ago
JSON representation
Remove module instance from `require.cache`
- Host: GitHub
- URL: https://github.com/lsongdev/purge-require-cache
- Owner: lsongdev
- License: mit
- Created: 2019-12-31T02:57:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-31T02:57:47.000Z (about 6 years ago)
- Last Synced: 2025-07-30T05:19:43.830Z (6 months ago)
- Topics: module, module-pattern, module-system
- Language: JavaScript
- Homepage: https://npmjs.org/purge-require-cache
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## purge-require-cache [](https://npmjs.org/purge-require-cache)
> Remove module instance from `require.cache`
### Installation
```bash
$ npm install purge-require-cache
```
### Example
```js
const {
purgeCache,
searchCache
} = require('purge-require-cache');
purgeCache('mymodule');
```
### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
### MIT
This work is licensed under the [MIT license](./LICENSE).
---