nashorn-promise

ES6 Promise polyfil for Nashorn

License

License

Categories

Categories

JavaScript Languages Net
GroupId

GroupId

net.arnx
ArtifactId

ArtifactId

nashorn-promise
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

nashorn-promise
ES6 Promise polyfil for Nashorn
Project URL

Project URL

https://github.com/hidekatsu-izuno/nashorn-promise
Source Code Management

Source Code Management

https://github.com/hidekatsu-izuno/nashorn-promise

Download nashorn-promise

How to add to project

<!-- https://jarcasting.com/artifacts/net.arnx/nashorn-promise/ -->
<dependency>
    <groupId>net.arnx</groupId>
    <artifactId>nashorn-promise</artifactId>
    <version>0.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/net.arnx/nashorn-promise/
implementation 'net.arnx:nashorn-promise:0.1.3'
// https://jarcasting.com/artifacts/net.arnx/nashorn-promise/
implementation ("net.arnx:nashorn-promise:0.1.3")
'net.arnx:nashorn-promise:jar:0.1.3'
<dependency org="net.arnx" name="nashorn-promise" rev="0.1.3">
  <artifact name="nashorn-promise" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.arnx', module='nashorn-promise', version='0.1.3')
)
libraryDependencies += "net.arnx" % "nashorn-promise" % "0.1.3"
[net.arnx/nashorn-promise "0.1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

license Maven Central

ES6 Promise support for Nashorn

This is a polyfill of the ES6 Promise using Java 8 CompletableFuture.

Getting Started

Setup

To add a dependency using Maven, use the following:

<dependency>
  <groupId>net.arnx</groupId>
  <artifactId>nashorn-promise</artifactId>
  <version>0.1.3</version>
</dependency>

To add a dependency using Gradle:

dependencies {
  compile 'net.arnx:nashorn-promise:0.1.3'
}

Usage

ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn");
engine.eval("load('classpath:net/arnx/nashorn/lib/promise.js')");

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Versions

Version
0.1.3
0.1.2
0.1.1
0.1.0