easy-storage

Easy and lightweight session,local,cookie storage

Usage no npm install needed!

<script type="module">
  import easyStorage from 'https://cdn.skypack.dev/easy-storage';
</script>

README

Simple wrapper for localStorage, sessionStorage and cookie.

import { localStorage, sessionStorage } from 'easy-storage';

localStorage.set('foo', 'bar');
localStorage.set('foo', {'bar': true});

For cookieStorage see 'js-cookie' package