A localStorage based store with namespacing
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test
.gitignore
.travis.yml
LICENCE
Makefile
README.md
index.js
package.json
testem.json

README.md

local-store build status

A localStorage based store with namespacing

Example

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

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

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

// cleanup
store.delete("foo")

Example name spaced

var Store = require("local-store")
var assert = require("assert")
var store = Store("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

MIT Licenced