Skip to content
Loads MooTools as a CommonJS Module. Implementation Version ~42. http://cpojer.net
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Source
Specs
LICENSE
README.md
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.