sbx-helper-storage
v1.0.2
Published
``` sbx i --save sbx-helper-storage ```
Downloads
18
Readme
SBX Request
sbx i --save sbx-helper-storage
Set is sets to document.cookie and window.localStorage
Get from document.cookie by priority then from window.localStorage
Del is set empty value to document.cookie and window.localStorage
import Storage from 'sbx-helper-storage';
Storage.set('auth', 'token');
Storage.get('auth');
Storage.del('auth');