Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

woch

0.1.0 • Public • Published

Wòch

Build Status

Yet a simple in-memory key/value storage module

Getting Started

Install the module with: npm install woch

Usage

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

Woch.keys();

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

Woch.clear();

Contributing

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

License

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

install

npm i woch

Downloadsweekly downloads

3

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability