npm.io
0.1.1 • Published 10 years ago

superstorage

Licence
MIT
Version
0.1.1
Deps
0
Vulns
0
Weekly
0

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'

Keywords