Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 247 Bytes

readme.md

File metadata and controls

10 lines (7 loc) · 247 Bytes

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