1.2.6 • Published 4 years ago

json-fetch-cache v1.2.6

Weekly downloads
96
License
Apache-2.0
Repository
github
Last release
4 years ago

json-fetch-cache

A simple package for fetching JSON from a URL and caching it for a decided amount of time.

Documentation

Build Status npm version

Installation

$ npm i -S json-fetch-cache

Usage

const Cache = require('json-fetch-cache');

const pcCache = new Cache('http://content.warframe.com/dynamic/worldState.php', 10000);

pcCache.getData()
  .then((data) => {
    console.log(data);
    process.exit(0);
  })
  .catch((error)=>{
    console.error(error);
  });
1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago