1.0.2 • Published 4 years ago

java-n-script v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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

Contributing

Shoot us a pull request and we will review changes right away

If something doesn't work as intended for you Java programmers feel free to open an issue.

License

This bad crappy code is licensed under the MIT license thingy

Disclaimer

This code is crappy and some things in Java just can't be implemented into JavaScript :'(

Yes I shamelessly copied the Pyscript README and changed some things. That's how lazy I am.