prime is an Object Oriented JavaScript library.

It helps you with prototypal inheritance and contains generic utilities for every-day JavaScripting.

By the MooTools development team.

No Native JavaScript Objects were harmed in the making of this library.

Cats Primes!

The function to create new primes.

var prime = require("prime")

var Animal = prime({
    say: function(){
        return "!!"
    }
})

var Cat = prime({
    inherits: Animal,
    say: function(){
        return "meaow" + Cat.parent.say.call(this)
    }
})

Shell

The base shell. As you require more shells, the base shell will be augmented. Requiring specific shells gives you access to generic methods as well.

var array = require("prime/shell/array")

array.indexOf([1,2,3], 3) // 3

var _ = require("prime/shell")

_([1,2,3]).remove(1).each(function(number){
    console.log(number)
})