1.0.2 • Published 4 years ago
java-n-script v1.0.2
java-n-script
Java in JavaScript. This is cursed.
Usage
Downloading the code:
Import everything as a name you picked (preferably java
)
ES6 modules:
import * as java from "./path/to/java-n-script";
console.log(java);
CommonJS (ew)
const java = require("./path/to/java-n-script");
console.log(java);
Using the package:
Install using npm:
npm install --save java-n-script
Install using yarn:
yarn add java-n-script
Usage:
ES6 Modules:
import * as java from "java-n-script";
console.log(java);
CommonJS (ew)
const java = require("java-n-script");
console.log(java);
Usage for real
const java = require("java-n-script");
console.log("hello world"); // ew wtf
java.lang.System.out.println("hello world"); // ah yes