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 woch with all npm packages installed. Try it out:

var woch = require("woch")

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

woch v0.1.0

Yet a simple in-memory key/value storage module


Build Status

Yet a simple in-memory key/value storage module

Getting Started

Install the module with: npm install woch


Require module.

var Woch = require( "woch" );

Store/set item

Woch.set( key, value );
Woch.setItem( key, value );

Retrieve/get item

Woch.get( key );
Woch.getItem( key );

Retrieve/get all items


Test key

Woch.has( key );

Get item at index

Woch.key( index );

Remove/delete item

Woch.remove( key );
Woch.removeItem( key );

Remove/delete all items



In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

2013-09-06: v0.1.0 - initial version


Copyright (c) 2013 Leny Licensed under the MIT license.

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