storekeeper

Simple name value storage with emitted events.

Storekeeper

Simple name value storage with emitted events.

Works with Express 3.0.x

$ npm install storekeeper

Storekeeper

// require it 
var Storekeeper = require('storekeeper').
    store = new Storekeeper().store;
 
// Listen to the 'stored' event 
store.on('stored', function (nameobject) {
  console.log(name + ' has been stored');
});
 
// add an object to the store 
store('item1', { title: 'Item 1' });
 
  • Write Tests