sales@avioxtechnologies.comSubscribe

Innovation TrackerNews

Node.js 20.17.0 (LTS)

Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.

Published By From Node.js News · 1 min read

This release adds require() support for synchronous ESM graphs under the flag --experimental-require-module .

If --experimental-require-module is enabled, and the ECMAScript module being loaded by require() meets the following requirements:

require() will load the requested module as an ES Module, and return the module name space object. In this case it is similar to dynamic import() but is run synchronously and returns the name space object directly.

Contributed by Joyee Cheung in #51977

Glob patterns can now be tested against individual paths via the path.matchesGlob(path, pattern) method.

Contributed by Aviv Keller in #52881

The function duplexPair returns an array with two items, each being a Duplex stream connected to the other side:

This is an excerpt. The full article is published by Node.js News.

Continue reading at Node.js News

Insights & Understanding

Frequently Asked Questions

Answers to common questions regarding this article's topic, architecture, and practical applications.