From 67b3420c5d153bf6c8e7d13f960bfb99e6c6c31f Mon Sep 17 00:00:00 2001 From: cola119 Date: Sun, 19 Jun 2022 21:40:49 +0900 Subject: [PATCH 1/3] lib: add missing env vars to --help --- lib/internal/main/print_help.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/internal/main/print_help.js b/lib/internal/main/print_help.js index 6aa422c657b2d0..8f320360879769 100644 --- a/lib/internal/main/print_help.js +++ b/lib/internal/main/print_help.js @@ -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 ' + + '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 ? [ From 875c41e98dba540841d278cf6092b348b7e35849 Mon Sep 17 00:00:00 2001 From: cola119 Date: Sun, 19 Jun 2022 21:40:52 +0900 Subject: [PATCH 2/3] doc: add missing env vars to man page --- doc/node.1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/node.1 b/doc/node.1 index 6ac0d6758342fb..d3636a6a46e0dd 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -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 @@ -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 , @@ -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 . From 911f8eb95bb0957def49818807138ca92ea52018 Mon Sep 17 00:00:00 2001 From: cola119 Date: Wed, 27 Jul 2022 23:02:46 +0900 Subject: [PATCH 3/3] fixup! lib: add missing env vars to --help --- lib/internal/main/print_help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/main/print_help.js b/lib/internal/main/print_help.js index 8f320360879769..5e95ad40ee4bbe 100644 --- a/lib/internal/main/print_help.js +++ b/lib/internal/main/print_help.js @@ -58,7 +58,7 @@ const envVars = new SafeMap(ArrayPrototypeConcat([ ['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 ' + - 'a supported platform during Node.js startup' }], + '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 ' +