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: 2 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-31T02:57:47.000Z (over 5 years ago)
- Last Synced: 2025-02-13T22:23:46.920Z (3 months ago)
- Topics: module, module-pattern, module-system
- Language: JavaScript
- Homepage: https://npmjs.org/purge-require-cache
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- 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).
---