clarified README
This commit is contained in:
parent
3ddf2be63d
commit
dfe7ca8752
20
README.md
20
README.md
|
@ -1,7 +1,7 @@
|
||||||
jsonStorage
|
JsonStorage
|
||||||
====
|
====
|
||||||
|
|
||||||
A light abstraction for DOMStorage (such as localStorage).
|
A light, sensible, abstraction for DOMStorage (such as localStorage).
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
===
|
===
|
||||||
|
@ -34,16 +34,16 @@ Made fo for Node.JS and Ender.JS (browser-side).
|
||||||
API
|
API
|
||||||
===
|
===
|
||||||
|
|
||||||
* `create(DOMStorage, namespace)`
|
* `JsonStorage.create(DOMStorage, namespace)`
|
||||||
* `DOMStorage` should be globalStorage, sessionStorage, or localStorage
|
* `DOMStorage` should be globalStorage, sessionStorage, or localStorage
|
||||||
* `namespace` is optional string which allows multiple non-conflicting storage containers
|
* `namespace` is optional string which allows multiple non-conflicting storage containers
|
||||||
* `get(key)`
|
* `store.get(key)`
|
||||||
* `set(key, value)`
|
* `store.set(key, value)`
|
||||||
* `remove(key)`
|
* `store.remove(key)`
|
||||||
* `clear()`
|
* `store.clear()`
|
||||||
* `keys()`
|
* `store.keys()`
|
||||||
* `size()`
|
* `store.size()`
|
||||||
* `toJSON()`
|
* `store.toJSON()`
|
||||||
* `JSON.stringify(store)`
|
* `JSON.stringify(store)`
|
||||||
|
|
||||||
Upgrading from localStorage and 1.0.x to 1.1.x
|
Upgrading from localStorage and 1.0.x to 1.1.x
|
||||||
|
|
Loading…
Reference in New Issue