Skip to content

Add Java extensions to require.extensions #2

@fb55

Description

@fb55

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions