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" +


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