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
ReleaseNode.js 20.17.0 (LTS)
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.
Answers to common questions regarding this article's topic, architecture, and practical applications.
This release adds require() support for synchronous ESM graphs under the flag --experimental-require-module.
How It Works
Windows 32-bit Installer: https://nodejs.org/dist/v20.17.0/node-v20.17.0-x86.msi
Windows 64-bit Installer: https://nodejs.org/dist/v20.17.0/node-v20.17.0-x64.msi
Windows ARM 64-bit Installer: https://nodejs.org/dist/v20.17.0/node-v20.17.0-arm64.msi
Windows 32-bit Binary: https://nodejs.org/dist/v20.17.0/win-x86/node.exe
Windows 64-bit Binary: https://nodejs.org/dist/v20.17.0/win-x64/node.exe
Windows ARM 64-bit Binary: https://nodejs.org/dist
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
direc
General
Glob patterns can now be tested against individual paths via the path.matchesGlob(path, pattern) method. Contributed by Aviv Keller in #52881