local-store
v0.2.0
Published
A localStorage based store with name spacing
Downloads
74
Readme
local-store
A localStorage based store
Example
var store = require("local-store")
, assert = require("assert")
store.set("foo", "bar")
assert.equal(store.get("foo"), "bar")
Example name spaced
var createStore = require("local-store").createStore
, store = createStore("my-unique-namespace")
store.set("foo", {
json: "works too"
})
assert.deepEqual(store.get("foo"), {
json: "works too"
})
Installation
npm install local-store
Tests
make test
Contributors
- Raynos