getSet
For small projects that don't necessitate a framework solution, I often want to reach into the backbone.js toolkit. getSet provides that minimal kit: events (on, trigger), get, and set.
Usage
npm install get-set
var GetSet = ; //Define your constructorvar {}; MyModelprototpe = ; //Now define the rest of your model...MyModelprototype...
API
;//or; //Object of key-val pairs