JSPL::Runtime::CommonJS - A CommonJS-complaint Runtime
use JSPL; my $ctx->stock_context('commonJS'); $ctx->eval(q| var print = function() { var stdout = require("system").stdout; stdout.print.apply(stdout, arguments); } |);
This JSPL Runtime plugin implements the emerging CommonJS standards APIs.
A this time, the following CommonJS specifications are implemented:
Modules/1.1.1
System/1.0
To install JSPL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSPL
CPAN shell
perl -MCPAN -e shell install JSPL
For more information on module installation, please visit the detailed CPAN module installation guide.