Boop
Boop (Backbone OOP) is standalone OOP library, based on one used in Backbone.
Boop may be used in different environments (browser, AMD, Node.js).
Usage
var Foo = Boop; var Event = { } { } { }; Foo; //call staic methodFoo; //create instancevar foo = ; //call prototype methodfoo; //call mixin methodfoo; //instanceof worksfoo instanceof Foo; //etc...
Installation
HTML:
Add:
Use:
AMD(RequireJS):
Install:
volo add boop
Use:
;
CommonJS(Node):
Install:
npm install boop
Use:
var Boop = ;var Quux = Boop;; //-> 'a'
Testing
Clone this repo, then install devDependencies
, then test with mocha
:
git clone https://github.com/jsmarkus/boop.git
cd boop
npm install -d
make test