cached-fetch

1.0.1 • Public • Published

cFetch

Cached Fetch

mini lib to automatically perform an ajax fetch and store its result into a cache

usage :

<script src="../dist/index.js"></script>
<script>
    cfetch.fecth("data.json", { checkNetwork: false /* default value : true */ });

    /// node 
    /// var cfetch = require('cfetch')
    /// cfecth.fetch("http://...", { /* options */ })
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i cached-fetch

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • freakdev