localstorage-max

Store items in localStorage as JSON object

Usage no npm install needed!

<script type="module">
  import localstorageMax from 'https://cdn.skypack.dev/localstorage-max';
</script>

README

localstorage-max

LocalStorage extension to store more than strings

Usage / API

(ES6)

import LSMax from 'localstorage-max'

LSMax.set('testKey', { foo: 'bar' });

LSMax.get('testKey'); // "{foo:'bar'}"

LSMax.remove('testKey');