tixfactory.storage

0.0.1001 • Public • Published

TixFactory.Storage

Introduction

TODO

Example

var storage = require("tixfactory.storage");

var localStorage = new storage.localStorage("./localStorage");
localStorage.on("set", function(key, value){
	console.log("localStorage set:", key, value);
}).on("remove", function(key, value){
	console.log("localStorage removed:", key, value);
});

var sessionStorage = new storage.sessionStorage();
sessionStorage.on("set", function(key, value){
	console.log("localStorage set:", key, value);
}).on("remove", function(key, value){
	console.log("localStorage removed:", key, value);
});

localStorage.setItem("hello", "world");
sessionStorage.setItem("hello", "world");
localStorage.removeItem("hello");
sessionStorage.removeItem("hello");

/tixfactory.storage/

    Package Sidebar

    Install

    npm i tixfactory.storage

    Weekly Downloads

    1

    Version

    0.0.1001

    License

    none

    Last publish

    Collaborators

    • webgl3d