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 23.10.0 (Current)
With the introduction of test runner, SEA, and other feature that require a lot of flags, a JSON config flag would improve by a lot the developer experience and increase adoption.
You can have a node.config.json containing:
You can run your tests without passing the flags defined in the config file.
Node.js will not sanitize or perform validation on the user-provided configuration, so only ever use trusted configuration files.
Contributed by Marco Ippolito in #57016 and #57171 .
Windows 64-bit Installer: https://nodejs.org/dist/v23.10.0/node-v23.10.0-x64.msi Windows ARM 64-bit Installer: https://nodejs.org/dist/v23.10.0/node-v23.10.0-arm64.msi Windows 64-bit Binary: https://nodejs.org/dist/v23.10.0/win-x64/node.exe Windows ARM 64-bit Binary: https://nodejs.org/dist/v23.10.0/win-arm64/node.exe macOS 64-bit Installer: https://nodejs.org/dist/v23.10.0/node-v23.10.0.pkg macOS Apple Silicon 64-bit Binary: https://nodejs.org/dist/v23.10.0/node-v23.10.0-darwin-arm64.tar.gz macOS Intel 64-bit Binary: https://nodejs.org/dist/v23.10.0/node-v23.10.0-darwin-x64.tar.gz Linux 64-bit Binary: https://nodejs.org/dist/v23.10.0/node-v23.10.0-linux-x64.tar.xz Linux PPC LE 64-bit Binary…
This is an excerpt. The full article is published by Node.js News.
With the introduction of test runner, SEA, and other feature that require a lot of flags, a JSON config flag would improve by a lot the developer experience and increase adoption.
How It Works
Windows 64-bit Installer: https://nodejs.org/dist/v23.10.0/node-v23.10.0-x64.msi
Windows ARM 64-bit Installer: https://nodejs.org/dist/v23.10.0/node-v23.10.0-arm64.msi
Windows 64-bit Binary: https://nodejs.org/dist/v23.10.0/win-x64/node.exe
Windows ARM 64-bit Binary: https://nodejs.org/dist/v23.10.0/win-arm64/node.exe
macOS 64-bit Installer: https://nodejs.org/dist/v23.10.0/node-v23.10.0.pkg
macOS Apple Silicon 64-bit Binary: https://nodejs.
General
With the introduction of test runner, SEA, and other feature that require a lot
of flags, a JSON config flag would improve by a lot the developer experience and
increase adoption. You can have a node.config.json containing: {
"$schema": "https://nodejs.org/dist/v23.10.0/docs/node-config-schema.json",
"nodeOptions": {
"test-coverage-lines": 80,
"test-coverage-branches": 60
}
}JSON
You can run your tests without passing the flags defi