Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including storekeeper with all npm packages installed. Try it out:

var storekeeper = require("storekeeper")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

storekeeper v0.0.1

Simple name value storage with emitted events.

Storekeeper

Simple name value storage with emitted events.

Build Status

Installation

Works with Express 3.0.x

$ npm install storekeeper

Usage

Storekeeper

// require it
var Storekeeper = require('storekeeper').
    store = new Storekeeper().store;

// Listen to the 'stored' event
store.on('stored', function (name, object) {
  console.log(name + ' has been stored');
});

// add an object to the store
store('item1', { title: 'Item 1' });

Todo

  • Write Tests
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free