org.mozilla.javascript.commonjs.module (rhino 1.7.13 API)

# Package org.mozilla.javascript.commonjs.module

Provides the public API for the CommonJS Modules/1.1 implementation.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  ModuleScriptProvider | Should be implemented by Rhino embeddings to allow the require() function to obtain `ModuleScript` objects.

- Class Summary
  Class | Description
  --- | ---
  ModuleScope | A top-level module scope.
  ModuleScript | Represents a compiled CommonJS module script.
  Require | Implements the require() function as defined by Common JS modules.
  RequireBuilder | A builder for `Require` instances.

## Package org.mozilla.javascript.commonjs.module Description

Provides the public API for the CommonJS Modules/1.1 implementation. Note that it is completely up to the embedder of the Rhino library to provide an implementation for ModuleProvider. However, to help you get started, the "support" package offers default implementations of module providers that are likely sufficient for most purposes, and can be further extended.