0.1.1 • Published 8 years ago

superstorage v0.1.1

Weekly downloads
199
License
MIT
Repository
-
Last release
8 years ago

Superstorage

Superstorage is a simple storage system to share data between modules

Usage

// myconf.js
let superstorage = require('superstorage');
let store = superstorage('myconf');

// store data
store.set('foo', 'Foo');

// get data
store.get('foo');

// remove data
store.remove('foo');

// check for existance
store.has('foo');

Get access in other modules to the stored data

// othermodule.js
let superstorage = require('superstorage');
let store = superstorage('myconf');

store.get('foo'); // returns 'Foo'