Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loads MooTools as a CommonJS Module. Implementation Version ~42.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Source
Octocat-spinner-32 Specs
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.yml
README.md

MooTools Loader

Loads MooTools as a CommonJS Module. Implementation Version ~42.

Build

Build via Packager, requires MooTools Core to be registered to Packager already

./packager register /path/to/Loader
./packager build Loader/Prefix Loader/Loader -blocks 1.2compat > MooTools.js

With Additional MooTools Components

./packager build Loader/Prefix Core/Class Core/Class.Extras Loader/Loader -blocks 1.2compat > MooTools.js

Usage

Using within a CommonJS Environment (for example NodeJS)

require('./MooTools').apply(GLOBAL);

Or

var Class = require('./MooTools').Class;

Credits

based on work by @keeto and me :)

Something went wrong with that request. Please try again.