1.0.1 • Published 5 years ago

cached-got v1.0.1

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

cached-got

Incredibly simple caching wrapper around got.

Install

This module has a peerDependency on got so you can use whatever version you want.

$ yarn add cached-got got

Usage

const cached = require('cached-got');
const { got } = cached('file-cache.json');

await got('http://google.com');

The function cached takes the path of a file that will be used to store the response body of your requests.

1.0.1

5 years ago

1.0.0

6 years ago