node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

structr

Structr is a thin class library that helps create, and extend prototypes.

Example

 
 
function Animal(name) {
  this.name = name;
}
 
function Cat(name) {
  Cat.__super__.apply(this, arguments);
}
 
structr(Animal, Cat, {
  meow: function() {
    console.log(this.name + ": meow");
  }
});