1.0.1 • Published 8 years ago

cached-fetch v1.0.1

Weekly downloads
7
License
ISC
Repository
github
Last release
8 years ago

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>