# continuable-cache

> Cache a continuable

Latest version **0.3.1** (published 2014-01-30) · 0 weekly downloads

## Install

```sh
npm install continuable-cache
pnpm add continuable-cache
yarn add continuable-cache
bun add continuable-cache
```

## 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.3.1 |
| Published | 2014-01-30 |
| First published | 2013-05-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/continuable-cache
- Repository: https://github.com/Raynos/continuable-cache
- Issues: https://github.com/Raynos/continuable-cache/issues
- npm.io page: https://npm.io/package/continuable-cache

## Recent versions

- 0.3.1 (latest) — 2014-01-30
- 0.2.1 — 2014-01-30
- 0.1.1 — 2013-05-08

## README

# continuable-cache

<!-- [![build status][1]][2] [![dependency status][3]][4]

[![browser support][5]][6] -->

Cache a continuable

## Example

```js
var cache = require("continuable-cache")
var fs = require("fs")

var readFile = function (uri) { return function (cb) {
    fs.readFile(uri, cb)
} }

var continuableFile = readFile("./package.json")

var cached = cache(continuableFile)

// will only do one file read operation
cached(function (err, file) {
    /* calls out to fs.readFile */
})

cached(function (err, file) {
    /* get's either err or file from cache in cached */
})
```

## Installation

`npm install continuable-cache`

## Contributors

 - Raynos

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/continuable-cache.png
  [2]: http://travis-ci.org/Raynos/continuable-cache
  [3]: https://david-dm.org/Raynos/continuable-cache/status.png
  [4]: https://david-dm.org/Raynos/continuable-cache
  [5]: https://ci.testling.com/Raynos/continuable-cache.png
  [6]: https://ci.testling.com/Raynos/continuable-cache

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