Ender CommonJS
The core client library to Ender providing you with require
, provide
, and a Module
class.
require(id)
var each = eachvar select =
require._modules
Includes the list of which modules are available for use in your Ender bundle
require._cache
Includes the list of modules that have been required()
by the implementer.
provide (id, value)
// access client/utils modulevar format = formatNumber
Module
- supports multi-file modules, internal/relative requires,
index
requiring, requiring submodules, and CommonJS compatibility.