npm.io
0.2.0 • Published 11 years ago

almacen

Licence
MIT
Version
0.2.0
Deps
0
Vulns
0
Weekly
0
Stars
1

Almacen

How to use it

Using browserify it's easy to use it.

var almacen = require("almacen");

almacen.local.set("hello","world!");
almacen.session.set("foo","bar");

almacen.session.get("foo") === "bar"; // true

almacen.local.set("object", {
  "a": [
    "b": 1
  ]
});

almacen.local.get("object")

But this works too with RequireJS.

define(["almacen"], function(almacen) {

  almacen.local.set("hello","world");

});

or even directly in the browser.


<script src="almacen.js"></script>
<script>

  almacen.local.set("hello","world");

</script>

Made with by ROJO 2 (http://rojo2.com)

Keywords