NAME
JSPL::Runtime::CommonJS - A CommonJS-complaint Runtime
SYNOPSYS
use JSPL;
my $ctx->stock_context('commonJS');
$ctx->eval(q|
var print = function() {
var stdout = require("system").stdout;
stdout.print.apply(stdout, arguments);
}
|);
DESCRIPTION
This JSPL Runtime plugin implements the emerging CommonJS standards APIs.
CONFORMACE
A this time, the following CommonJS specifications are implemented:
Modules/1.1.1
System/1.0