An open API service indexing awesome lists of open source software.

https://github.com/wangdahoo/storage-js-iso

storage.js compatible with isomorphic apps.
https://github.com/wangdahoo/storage-js-iso

Last synced: 11 months ago
JSON representation

storage.js compatible with isomorphic apps.

Awesome Lists containing this project

README

          

# storage-js-iso

storage.js compatible with isomorphic apps.

### How to use

```html

```

```js
$storage.on('time', function (e) {
console.log('time changed', e)
})

setInterval(function () {
$storage.set('time', (new Date()).getTime());
}, 50)
```

### API

- set(key:String, value:Any)
- get(key:String)
- remove(key:String)
- clear()
- on(key:String, fn:Function)
- off(key:String, fn:Function)