# browserify-cache-api

> Attaches per-module caching of module resolution and transformation to a browserify instance.

Latest version **3.0.2** (published 2022-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install browserify-cache-api
pnpm add browserify-cache-api
yarn add browserify-cache-api
bun add browserify-cache-api
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2022-05-28 |
| First published | 2014-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | James Friend |
| Maintainers | jsdf, macil |

## Links

- npm: https://www.npmjs.com/package/browserify-cache-api
- Repository: https://github.com/jsdf/browserify-cache-api
- Issues: https://github.com/jsdf/browserify-cache-api/issues
- npm.io page: https://npm.io/package/browserify-cache-api

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^2.6.4
- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.0

## Recent versions

- 3.0.2 (latest) — 2022-05-28
- 1.5.1 (1.x-branch) — 2015-04-27
- 3.0.1 — 2016-07-28
- 3.0.0 — 2016-03-19
- 2.0.0 — 2015-04-20
- 1.5.0 — 2015-01-25
- 1.3.0 — 2015-01-07
- 1.2.1 — 2014-12-31
- 1.2.0 — 2014-12-07
- 1.1.0 — 2014-12-06
- 1.0.0 — 2014-10-21
- 0.1.2 — 2014-07-23
- 0.1.1 — 2014-07-23
- 0.1.0 — 2014-07-22

## README

# browserify-cache-api

Attaches per-module caching of module resolution and transformation to a browserify instance.

Caches to a file on disk, invalidated by source file modification time.

Used by [browserify-incremental](https://github.com/jsdf/browserify-incremental)

```js
  // create a browserify instance
  var b = browserify({
    // cache and packageCache opts are required
    cache: {},
    packageCache: {},
    // and then your opts...
  });

  // attach caching, specifying a location to store the cache file
  browserifyCache(b, {cacheFile: './tmp/browserify-cache.json'});

  // browserify module resolution + transformation is now cached
```

## Contributing

Please see the [Contributor Guidelines](CONTRIBUTING.md).

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