![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
This is a helper dev package to work with Eclipse Vert.x JS/TS projects.
Included scripts:
Init the ES4X scripts section in the current package.json
usually used with npx
:
npm es4x-cli init
Postinstall will bootstrap a pom.xml
file from the package.json
. The maven
pom file can be customized by supplying a handlebars template named
.pom.xml
.
By default both groupId
and artifactId
will map to the package json
name
property, the version will map to the version
property and the
main verticle will map to the main
property.
All entries in files
will be added to the final fatJar
with the caveat
that directories must be sufixed with /
so maven can understand
how to handle it.
In order to use this script in your project you should have init'ed your
package.json
.
You can add normal dependencies as normal too.
This script will delegate to vert.x launcher, it will invoke the command you want to run and pass all arguments to it.
There are a couple of helper.
-d
will start the JVM in debug mode listening on port 9797-t
will use the test
classpath instead of the runtime
classpathWhen no arguments are passed the main verticle is derived from the
package.json
main
property. When the test classpath is enabled then
this value is suffixed by .test.js
.
An example running tests would be after adding vertx-unit
to the
devDependencies
:
{
"scripts": {
"test": "es4x launcher test -v"
},
"devDependencies": {
"es4x-cli": "*",
"@vertx/unit": "3.5.3"
},
"dependencies": {
"@vertx/core": "3.5.3"
}
}
You can run your code from a shell by executing the command:
es4x shell
or if you package your application into a java jar
file:
java -jar your-jar.jar io.reactiverse.es4x.Shell
FAQs
JavaScript for Eclipse Vert.x Utilities
The npm package es4x-cli receives a total of 1 weekly downloads. As such, es4x-cli popularity was classified as not popular.
We found that es4x-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.