@gibme/local-storage
v1.0.12
Published
A simple local-storage helper
Downloads
542
Readme
Simple Local Storage Helper
Static wrapper around a browser's localStorage that falls back to File based storage in the host's temporary directory.
Such storage is generally persistent across pages within a domain; and, if file based, across application executions.
Documentation
https://gibme-npm.github.io/local-storage/
Sample Code
import LocalStorage from '@gibme/local-storage';
LocalStorage.set('somekey', 'somevalue');
if (LocalStorage.has('somekey')) {
console.log(LocalStorage.get<string>('somekey'));
LocalStorage.remove('somekey');
}