Skip to content

santo74/mod-lang-nashorn

 
 

Repository files navigation

Javascript on Vert.x with Nashorn

This module uses the Nashorn JavaScript engine to power Vert.x JavaScript verticles This language module uses the generic vert.x Javascript API in mod-lang-js. The API documentation is the same as for lang-js and lang-rhino, and can be found on the lang-js CI server.

API Documentation

This module also supports CoffeeScript.

  • Important note. The Nashorn engine is an intrinsic part of the Java 8 JDK implementation. In order to use this module you will need to be running Vert.x with JDK 1.8.0 or later *

Usage

By default, vert.x runs Javascript with Rhino. Change this by creating a langs.properties file at the root of your project that looks something like this.

nashorn=io.vertx~lang-nashorn~0.1-SNAPSHOT:org.vertx.java.platform.impl.NashornVerticleFactory
.js=nashorn
.coffee=nashorn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 53.8%
  • Java 46.2%