0.0.5 • Published 5 years ago

reqache v0.0.5

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

Reqache

Reqache is a library that caches get request data specifically for apis that have strict call limits

Installation

npm install reqache

API

  • fetch(url, options)
    • options is a js object that contains two properties : responseType and env
      • env is the current enviornment you are running in. If you are in a production env, then reqache will not cache.
        • prod or dev are the expected values for env
      • responseType is the type of response you are expecting json, text etc..

Usage

import {fetch} from "reqache"

fetch(url)
.then(data=>console.log(data));

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago