Node.js 22, the latest version of the popular JavaScript runtime, has arrived, featuring

1
require()

support for ECMAScript modules, an improved WebSocket client, and an updated version of the Google V8 JavaScript engine.

Announced April 24, version 22 of the event-driven, asynchronous runtime can be downloaded from Nodejs.org. The release adds

1
require()

support for synchronous ECMAScript module graphs under the flag: 

1
--experimental-require-module

. If this flag is enabled and the ES module meets a couple of requirements,

1
require()

will load the requested module. Additionally, Node.js 22 includes an experimental feature for the execution of scripts from

1
package.json

with the CLI flag: 

1
node --run <script-in-package-json>

.

To read this article in full, please click here


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *