From c4efbba4da9646b196ea686ddecc70452332bc65 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 3 Feb 2014 15:08:54 -0600 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eb609bf..d11d99f 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,11 @@ you may wish to pass the `{ stringify: false }` option to prevent double stringi API === - * `JsonStorage.create(DOMStorage, namespace)` - * `DOMStorage` should be globalStorage, sessionStorage, or localStorage - * `namespace` is optional string which allows multiple non-conflicting storage containers + * `JsonStorage.create(DOMStorage, namespace, opts)` + * `DOMStorage` should be globalStorage, sessionStorage, or localStorage. Defaults to window.localStorage if set to `null`. + * `namespace` is optional string which allows multiple non-conflicting storage containers. Use `null` if you want opts but not a namespace + * `opts` + * `stringify` set to `false` in `node` to avoid double stringifying * `store.get(key)` * `store.set(key, value)` * `store.remove(key)`