@gosquared/stash-2

npm i @gosquared/stash-2

Usage no npm install needed!

<script type="module">
  import gosquaredStash2 from 'https://cdn.skypack.dev/@gosquared/stash-2';
</script>

README

Install

npm i @gosquared/stash-2

Usage

const stash = new Stash();
const key = 'test';
const fetch = async () => { return { test: 1 } }
const value = await stash.get(key, fetch);

Development

npm i
npm run watch
npm test