storage-manager-es
v1.0.8
Published
```javascript const localStorage = new StorageLocal() if (localStorage.hasKey('user_id') === false) { localStorage.setData('user_id', ID) } console.log('ID', localStorage.getData('user_id')) ```
Downloads
11
Readme
Browser:
const localStorage = new StorageLocal()
if (localStorage.hasKey('user_id') === false) {
localStorage.setData('user_id', ID)
}
console.log('ID', localStorage.getData('user_id'))
CLI:
const storage = new StorageSimple()
if (storage.hasKey('user_id') === false) {
storage.setData('user_id', ID)
}
console.log('ID', storage.getData('user_id'))