package
Cache the response from `got` to a file
npm install cached-gotGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
3.2 kB
Includes dependencies.
Incredibly simple caching wrapper around got.
This module has a peerDependency on got so you can use whatever version you want.
$ yarn add cached-got gotconst 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.