local-store

A localStorage based store with name spacing

local-store

A localStorage based store with namespacing

var store = require("local-store")
    , assert = require("assert")

store.set("foo", "bar")

assert.equal(store.get("foo"), "bar")

// cleanup
store.delete("foo")
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"
})

npm install local-store

make test

  • Raynos