Tag Archives: DynJS

NPM compliant CommonJS module loader for the JVM

via nodyn/jvm-npm · GitHub.

Support for NPM module loading in Javascript runtimes on the JVM. Implementation is based onhttp://nodejs.org/api/modules.html and should be fully compatible. This, of course, does not include the full node.js API, so don’t expect all of the standard NPM modules that depend on it to work. If you want to use existing NPM modules that depend on the Node.js API, consider the not-yet-fully-baked nodyn project. If you are writing your own NPM modules in DynJS, Rhino or Nashorn, this should work just fine.

This module is known to work with DynJS, and has been briefly tested on Nashorn, and should work with Rhino as well.