Skip to content

Please allow executing of complete NPM packages from Java code (like NodeJVM) #2888

@sparkyspider

Description

@sparkyspider

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.
The most useful feature of Graal or Truffle in my opinion should be to execute npm modules from Java. I've tried this using the Java API but it's no means trivial trying to include all the "system" libraries through the API.

Describe the solution you'd like.
It would be really cool if one could simple execute NPM scripts like you can from NodeJVM by Mike Hearn.

Describe who do you think will benefit the most.
People with build tools on the backend. Compressing, bundling, packaging, purging. Web builders, online dev tools, etc. In fact, any dynamic app that requires access to NPM's vast array of JS tools. Also, running a GraalVM buildpack on Heroku is one thing. Now needing to try and fudge in an alternative java executable is another.

Describe alternatives you've considered.
NodeJVM

Additional context.
3rd Party Implementation: https://mikehearn.github.io/nodejvm/using-from-java/

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions