2.4.2 • Published 4 years ago

client-cache-fetch v2.4.2

Weekly downloads
6
License
ISC
Repository
gitlab
Last release
4 years ago

Client Cache Fetch

Helper for fetching and caching text responses using localStorage.

Installation

npm install client-cache-fetch

Syntax

Client cache fetch inherits the same API as fetch().

cacheFetchResponsePromise = cacheFetch(resource, init);

Example

import cacheFetch from "client-cache-fetch";

const reponse = await cacheFetch("https://api.ipdata.co/?api-key=test", {
  method: "GET",
  headers: {
    "Content-Type": "text/json",
  },
});
2.4.2

4 years ago

2.4.1

5 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago