# recursive-uncache

> recursively uncache required files

Latest version **0.1.1** (published 2018-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install recursive-uncache
pnpm add recursive-uncache
yarn add recursive-uncache
bun add recursive-uncache
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-02-08 |
| First published | 2017-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Pflugradt |
| Maintainers | paulpflug |
| Keywords | require, uncache, recursive |

## Links

- npm: https://www.npmjs.com/package/recursive-uncache
- Repository: https://github.com/paulpflug/recursive-uncache
- Homepage: https://github.com/paulpflug/
- Issues: https://github.com/paulpflug/recursive-uncache/issues
- npm.io page: https://npm.io/package/recursive-uncache

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-02-08
- 0.1.0 — 2017-04-11
- 0.0.1 — 2017-04-08

## README

# recursive-uncache

`require` per caches all modules. 
If you remove a module from `require.cache`, but the parent module doesn't reevaluate its `require` calls, the old state persists.

`recursive-uncache` removes a module and all recursive parents from the cache.

### Install

```sh
npm install --save-dev recursive-uncache
```

### Usage

```js
uncache = require("recursive-uncache")

uncache(module,base=".",verbose=false) // module must be a absolute path
// example with chokidar
chokidar.watch(["./src"],{ignoreInitial: true})
.on("all", (ev, filepath) => uncache(filepath))
```

## License
Copyright (c) 2017 Paul Pflugradt
Licensed under the MIT license.

---
_Source: https://npm.io/package/recursive-uncache · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
