# fs-request-cache

> Simple http cache using cheerio and fs

Latest version **1.0.3** (published 2018-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-request-cache
pnpm add fs-request-cache
yarn add fs-request-cache
bun add fs-request-cache
```

## 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 | 1.0.3 |
| Published | 2018-10-18 |
| First published | 2018-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=9 |
| Dependencies | 4 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mauricio Allende |
| Maintainers | mallendeo |
| Keywords | cache, ttl, request, expire |

## Links

- npm: https://www.npmjs.com/package/fs-request-cache
- Repository: https://github.com/mallendeo/fs-request-cache
- Homepage: https://github.com/mallendeo/fs-request-cache#readme
- Issues: https://github.com/mallendeo/fs-request-cache/issues
- npm.io page: https://npm.io/package/fs-request-cache

## Dependencies (4)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.0
- [app-root-path](https://npm.io/package/app-root-path.md) ^2.1.0
- [axios-https-proxy-fix](https://npm.io/package/axios-https-proxy-fix.md) ^0.17.1

## 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

- 1.0.3 (latest) — 2018-10-18
- 1.0.2 — 2018-10-10
- 1.0.1 — 2018-10-01
- 1.0.0 — 2018-10-01

## README

# fs-request-cache

Simple http cache using cheerio and fs.

## Install
```bash
$ yarn add fs-request-cache
# or npm i fs-request-cache
```

## Usage

```js
import { request, dom } from 'fs-request-cache'
// or const { request, dom } = require('fs-request-cache')

const html = await request('https://google.com', {
  ttl: 3600, // one hour
  force: false // default is `false`
})

// dom
const $ = await request('https://google.com', {
  ttl: 60, // one minute
})

const title = $('title').text()
```

## Test

```bash
$ yarn test
```

## License

MIT

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