node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »


unterproto Build Status

Simplest possible prototypal inheritance sugar. For node.js and browser.


For node.js:

npm install unterproto

For browser you must include lib/unterproto.js into your page. Unterproto is AMD-aware so if you are using require.js you don't need to add an extra shim for it.


See live example:

(function () {
  var A = Unterproto.inherits({
    initialize: function (foo) { = foo;
  var B = A.inherits({
    getFoo: function () {
  var b = B.instance('bar');
  alert(b.getFoo()); // 'bar' 


For node.js tests run:

npm test

For browser test run buster manually or try:

grunt buster