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

https://github.com/dafrok/lostora.js

A localStorage handler to support Object or JSON
https://github.com/dafrok/lostora.js

Last synced: 3 months ago
JSON representation

A localStorage handler to support Object or JSON

Awesome Lists containing this project

README

          

# Lostora
A localStorage handler to support Object or JSON

## Usage
### Install
### API
#### Lostora.set(key,value)
> `Lostora.set("foo","bar")`
>
> `console.log(localStorage)`
>
> Storage {foo: "bar", length: 1}
>
> `Lostora.set("baz",{baz:"qux"})`
>
> `console.log(localStorage)`
>
> Storage {baz: "{"baz":"qux"}", foo: "bar", length: 2}