getsetmixin

Express like get/set mixin (Map) for objects

npm install getsetmixin
2 downloads in the last week
4 downloads in the last month

getsetmixin

Simple map like mixin for objects. This was designed to emulate the behaviour of express configuration methods (.get, .set).

Usage

var object = { xxx: true };

require('getsetmixin')(object);

// no conflicts
object.get('xxx'); // => undefined

// chainable
object.set('xxx', 1).
       set('yyy', 2);

object.get('xxx'); // => 1
object.get('yyy'); // => 2
npm loves you