sbx-helper-storage

1.0.2 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i sbx-helper-storage

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

2.2 kB

Total Files

3

Last publish

Collaborators

  • v.sobix