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');
Store items in localStorage as JSON object
<script type="module">
import localstorageMax from 'https://cdn.skypack.dev/localstorage-max';
</script>
LocalStorage extension to store more than strings
(ES6)
import LSMax from 'localstorage-max'
LSMax.set('testKey', { foo: 'bar' });
LSMax.get('testKey'); // "{foo:'bar'}"
LSMax.remove('testKey');