Table of Contents


Hop.js supports the following Node.js modules:

Notable differences

process.versionreturns the Hop.js version. The Node.js version is stored in the nodeproperty of process.versions.

The default behaviour of Hop.js is to launch an HTTP server. To mimic Node.js, use the --no-server option to disable the launch of the Hop.js built-in server, and automatically terminate the process when all events are processed.

Hop.js eval function does not access the lexical scope surrounding the evalcall. For Example:

function foo() {
  var x = false;
  return( eval( 'x' ));

console.log( foo() );

foo() would return falsewith Node.js, and truewith Hop.js.