Necrotizing Pineapple Music

structr

0.3.2 • Public • Published

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");
  }
});
 
 

Keywords

none

install

npm i structr

Downloadsweekly downloads

2,009

version

0.3.2

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability