ajax-caching

0.3.0 • Public • Published

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

/ajax-caching/

    Package Sidebar

    Install

    npm i ajax-caching

    Weekly Downloads

    99

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • alincode