clarified README

This commit is contained in:
AJ ONeal 2012-03-02 11:51:58 -07:00
parent 3ddf2be63d
commit dfe7ca8752
1 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
jsonStorage
JsonStorage
====
A light abstraction for DOMStorage (such as localStorage).
A light, sensible, abstraction for DOMStorage (such as localStorage).
Installation
===
@ -34,16 +34,16 @@ Made fo for Node.JS and Ender.JS (browser-side).
API
===
* `create(DOMStorage, namespace)`
* `JsonStorage.create(DOMStorage, namespace)`
* `DOMStorage` should be globalStorage, sessionStorage, or localStorage
* `namespace` is optional string which allows multiple non-conflicting storage containers
* `get(key)`
* `set(key, value)`
* `remove(key)`
* `clear()`
* `keys()`
* `size()`
* `toJSON()`
* `store.get(key)`
* `store.set(key, value)`
* `store.remove(key)`
* `store.clear()`
* `store.keys()`
* `store.size()`
* `store.toJSON()`
* `JSON.stringify(store)`
Upgrading from localStorage and 1.0.x to 1.1.x