Skip to content

piuccio/cached-got

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Cache the response from `got` to a file

Resources

Stars

Watchers

Forks

Packages

No packages published