superstorage

0.1.1 • Public • Published

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'

Package Sidebar

Install

npm i superstorage

Weekly Downloads

21

Version

0.1.1

License

MIT

Last publish

Collaborators

  • andifeind