nearinfinity/node-java — Issue #2: Add Java extensions to require.extensions
Author: FB55
Created: 2012-02-17 19:24:37+00:00
State: open

Great project. I'm loving the idea behind it. Anyway, it would be great if you could add Java extensions such as `.class` and `.jar` to `require.extensions`, so that a simple `require("foo.class")` would return the whole API of the file.

Support for `.java` would be a nice-to-have, even when importing it will be pretty slow due to the compilation overhead.

Writing node apps that rely on Java libs would become much easier, and it wouldn't feel as if you try to write Java code in JS. I just want to use the helpers I wrote half a lifetime ago in Java with node, without remembering how Java worked.