light-o

Minimalistic minimal prototypical OO library.

Light-O

Minimally minimal prototypical OO library.

var Base = require('light-o')
 
var Thing = Base.clone(function() {
  this.compute = function() {
    return 42;
  }
})
 
var newThing = Thing.clone()
newThing.compute()
// => 42 

Grab it from NPM:

$ npm install light-o

This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :3

Copyright (c) 2013 Quildreen Motta.

Released under the MIT licence.