@swenkerorg/ex-consectetur-sequi

2.1.38 • Public • Published

json-fetch-cache

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

npm version CI GitHub pages

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);
  });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.38
    0
    • latest

Version History

Package Sidebar

Install

npm i @swenkerorg/ex-consectetur-sequi

Weekly Downloads

302

Version

2.1.38

License

MIT

Unpacked Size

56.2 kB

Total Files

119

Last publish

Collaborators

  • swenkertreanpm