0.3.0 • Published 4 years ago

ajax-caching v0.3.0

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

AJAX caching

Travis codecov npm downloads Dependency Status

Feature

  • It could help you quickly AJAX caching result.

Install

npm install ajax-caching

usage

  • use cache
const compilerURL = 'https://solc-bin.ethereum.org/bin/soljson-v0.4.25+commit.59dbf8f1.js';
const opts = { url: compilerURL, caching: true };
let source = await promiseAjax(opts);
  • don't use cache
const compilerURL = 'https://solc-bin.ethereum.org/bin/soljson-v0.4.25+commit.59dbf8f1.js';
const opts = { url: compilerURL, caching: false };
let source = await promiseAjax(opts);
  • simple to use
const compilerURL = 'https://solc-bin.ethereum.org/bin/soljson-v0.4.25+commit.59dbf8f1.js';
let source = await promiseAjax(compilerURL);

License

MIT © alincode

0.3.0

4 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago