esjava

0.0.8 • Public • Published

ESJava: EXPERIMENTAL Java => ES6 Transpiler

npm version Dependency Status devDependency Status

Example:

~$ npm i -g esjava

~$ echo '
   public class Horse extends Animal {
     Horse(String name) {
       super(name);
     }
     private static final int UNIVERSE = 42;
   }
   ' > HelloWorld.java

~$ esjava HelloWorld.java
   'use strict';
   class Horse extends Animal {
     constructor(name) {
       super(name);
     }
     static get UNIVERSE() {
       return 42;
     }
   }

Readme

Keywords

Package Sidebar

Install

npm i esjava

Weekly Downloads

0

Version

0.0.8

License

BSD-2-Clause

Last publish

Collaborators

  • mazko