An open API service indexing awesome lists of open source software.

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`

Awesome Lists containing this project

README

        

## purge-require-cache [![purge-require-cache](https://img.shields.io/npm/v/purge-require-cache.svg)](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).

---