Package Exports
- @igoradamenko/local-storage
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@igoradamenko/local-storage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@igoradamenko/local-storage
Fallback for Local Storage which makes it possible to read/write to a plain object instead of localStorage when it's not available (e.g. in Safari Private Browsing Mode).
Installation
npm i --save @igoradamenko/local-storage
Usage
import LS from '@igoradameko/local-storage';
const key = LS.getItem('key'); // do everything you wanna do with Local Storage
Browsers Support
It uses Object.keys
and Object.defineProperty
,
so works only in IE9+.