Minimal model decoration framework
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
build
getSet.js
index.js
package.json
readme.md

readme.md

get-set

get(k) and set(k,v) properties of your object

Usage

npm install get-set
var GetSet = require('get-set');

//Define your constructor
var MyModel = function() {};

MyModel.prototpe = new GetSet();
.get(key)
.set(key,val);
//or
.set(object); //Object of key-val pairs