# fesch

> Local browser cache for the Fetch API

Latest version **0.1.3** (published 2022-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install fesch
pnpm add fesch
yarn add fesch
bun add fesch
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2022-04-12 |
| First published | 2022-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=14.0.0 |
| Dependencies | 1 |
| Unpacked size | 26.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | idleberg |
| Keywords | fetch, cache, fetch cache, cache expiry |

## Links

- npm: https://www.npmjs.com/package/fesch
- Repository: https://github.com/idleberg/node-fesch
- Homepage: https://github.com/idleberg/node-fesch#readme
- Issues: https://github.com/idleberg/node-fesch/issues
- npm.io page: https://npm.io/package/fesch

## Dependencies (1)

- [web-porridge](https://npm.io/package/web-porridge.md) ^0.20.0

## 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.3 (latest) — 2022-04-12
- 0.1.2 — 2022-04-10
- 0.1.1 — 2022-04-10
- 0.1.0 — 2022-04-10

## README

# fesch

[![npm](https://flat.badgen.net/npm/license/fesch)](https://www.npmjs.org/package/fesch)
[![npm](https://flat.badgen.net/npm/v/fesch)](https://www.npmjs.org/package/fesch)
[![CI](https://img.shields.io/github/workflow/status/idleberg/node-fesch/CI?style=flat-square)](https://github.com/idleberg/node-fesch/actions)
[![Snyk](https://flat.badgen.net/snyk/idleberg/fesch)](https://snyk.io/vuln/npm:fesch)

Local browser cache for the [Fetch API][]

## Installation

`npm install fesch -S`

## Usage

### Import

```ts
import { Fesch } from 'fesch';

const { fetch } = Fesch({
    expiry: 3_600_000, // 1 hour
});

// Uses the standard Fetch API
await fetch('https://jsonplaceholder.typicode.com/todos/1' {
    headers: {
        accept: 'application/json',
    }
});
```

## License

This work is licensed under [The MIT License](LICENSE)

[fetch api]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

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