Skip to content

im-lonely/java-n-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.