Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add missing environment variables to --help and man command #43492

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/node.1
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ instead of printing to stderr.
Equivalent to passing
.Fl -redirect-warnings Ar file
on the command line.
.
.It Ev NODE_REPL_HISTORY Ar file
Path to the
.Ar file
Expand All @@ -657,6 +658,10 @@ The default path is
which is overridden by this variable.
Setting the value to an empty string ("" or " ") will disable persistent REPL history.
.
.It Ev NODE_REPL_EXTERNAL_MODULE Ar file
Path to a Node.js module which will be loaded in place of the built-in REPL.
Overriding this value to an empty string (`''`) will use the built-in REPL.
.
.It Ev NODE_SKIP_PLATFORM_CHECK
When set to
.Ar 1 ,
Expand Down Expand Up @@ -692,6 +697,9 @@ If
.Fl -use-openssl-ca
is enabled, this overrides and sets OpenSSL's file containing trusted certificates.
.
.It Ev TZ
Specify the timezone configuration.
.
.It Ev UV_THREADPOOL_SIZE Ar size
Sets the number of threads used in libuv's threadpool to
.Ar size .
Expand Down
5 changes: 5 additions & 0 deletions lib/internal/main/print_help.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ const envVars = new SafeMap(ArrayPrototypeConcat([
'of stderr' }],
['NODE_REPL_HISTORY', { helpText: 'path to the persistent REPL ' +
'history file' }],
['NODE_REPL_EXTERNAL_MODULE', { helpText: 'path to a Node.js module ' +
'which will be loaded in place of the built-in REPL' }],
['NODE_SKIP_PLATFORM_CHECK', { helpText: 'set to 1 to skip ' +
'the check for a supported platform during Node.js startup' }],
['NODE_TLS_REJECT_UNAUTHORIZED', { helpText: 'set to 0 to disable TLS ' +
'certificate validation' }],
['NODE_V8_COVERAGE', { helpText: 'directory to output v8 coverage JSON ' +
'to' }],
['TZ', { helpText: 'specify the timezone configuration' }],
['UV_THREADPOOL_SIZE', { helpText: 'sets the number of threads used in ' +
'libuv\'s threadpool' }],
], hasIntl ? [
Expand Down