Skip to content
Closed
27 changes: 27 additions & 0 deletions doc/node.1
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,22 @@ disabled.
.It Ev NO_COLOR
Alias for NODE_DISABLE_COLORS
.
.It Ev NODE_COMPILE_CACHE Ar dir
Enable the
.Sy module compile cache
Comment thread
dario-piotrowicz marked this conversation as resolved.
Outdated
for the Node.js instance
Comment thread
dario-piotrowicz marked this conversation as resolved.
Outdated
.
.It Ev NODE_DEBUG Ar modules...
Comma-separated list of core modules that should print debug information.
.
.It Ev NODE_DEBUG_NATIVE Ar modules...
Comma-separated list of C++ core modules that should print debug information.
.
.It Ev NODE_DISABLE_COMPILE_CACHE Ar dir
Disable the
.Sy module compile cache
Comment thread
dario-piotrowicz marked this conversation as resolved.
Outdated
for the Node.js instance
Comment thread
dario-piotrowicz marked this conversation as resolved.
Outdated
.
.It Ev NODE_DISABLE_COLORS
When set to
.Ar 1 ,
Expand Down Expand Up @@ -754,6 +764,9 @@ When set to
.Ar 1 ,
emit pending deprecation warnings.
.
.It Ev NODE_PENDING_PIPE_INSTANCES
Set the number of pending pipe instance handles when the pipe server is waiting for connections. This setting applies to Windows only.
.
.It Ev NODE_PRESERVE_SYMLINKS
When set to
.Ar 1 ,
Expand Down Expand Up @@ -787,11 +800,25 @@ the check for a supported platform is skipped during Node.js startup.
Node.js might not execute correctly.
Any issues encountered on unsupported platforms will not be fixed.
.
.It Ev NODE_TEST_CONTEXT
When set to
.Sq child,
test reporter options will be overridden and test output will be sent to stdout in the TAP format.
Comment thread
dario-piotrowicz marked this conversation as resolved.
Outdated
If any other value is provided, Node.js makes no guarantees about the reporter format used or its stability.
.
.It Ev NODE_TLS_REJECT_UNAUTHORIZED
When set to
.Ar 0 ,
TLS certificate validation is disabled.
.
.It Ev NODE_USE_ENV_PROXY
When enabled, Node.js parses the
.Ar HTTP_PROXY,
Comment thread
dario-piotrowicz marked this conversation as resolved.
Outdated
.Ar HTTPS_PROXY
and
.Ar NO_PROXY
environment variables during startup, and tunnels requests over the specified proxy.
.
.It Ev NODE_V8_COVERAGE Ar dir
When set, Node.js writes JavaScript code coverage information to
.Ar dir .
Expand Down
10 changes: 0 additions & 10 deletions test/parallel/test-cli-node-cli-manpage-env-vars.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ assert(manpageEnvVarNames.size > 0,
'Unexpectedly not even a single env variable was detected when scanning the `doc/node.1` file'
);

// TODO(dario-piotrowicz): add the missing env variables to the manpage and remove this set
// (refs: https://github.com/nodejs/node/issues/58894)
const knownEnvVariablesMissingFromManPage = new Set([
Comment thread
dario-piotrowicz marked this conversation as resolved.
'NODE_COMPILE_CACHE',
'NODE_DISABLE_COMPILE_CACHE',
'NODE_PENDING_PIPE_INSTANCES',
'NODE_TEST_CONTEXT',
'NODE_USE_ENV_PROXY',
]);

for (const envVarName of cliMdEnvVarNames) {
if (!manpageEnvVarNames.has(envVarName) && !knownEnvVariablesMissingFromManPage.has(envVarName)) {
assert.fail(`The "${envVarName}" environment variable (present in \`doc/api/cli.md\`) is missing from the \`doc/node.1\` file`);
Expand Down