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
- Host: GitHub
- URL: https://github.com/dafrok/lostora.js
- Owner: Dafrok
- Created: 2015-03-26T09:58:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T16:55:20.000Z (about 11 years ago)
- Last Synced: 2025-03-12T16:37:01.746Z (over 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}