Skip to content

Instantly share code, notes, and snippets.

@Alhadis
Last active February 16, 2018 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alhadis/08b5b5fba1de2feb36f4a9ee05e69229 to your computer and use it in GitHub Desktop.
Save Alhadis/08b5b5fba1de2feb36f4a9ee05e69229 to your computer and use it in GitHub Desktop.
node(1) mdoc/man comparison
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><title>After</title><style> html{ background: black; color: white } a{ color: inherit; text-decoration: none } pre{ font: 1rem "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; font-variant-ligatures: none }</style></head><body><pre>
NODE(1) BSD General Commands Manual NODE(1)
<b>NAME</b>
<b>node</b> — server-side JavaScript runtime
<b>SYNOPSIS</b>
<b>node</b> [<u>options</u>] [<u>v8-options</u>] [<b>-e</b> <u>string</u> | <u>script.js</u> | <b>-</b>] [<b>--</b>]
[<u>arguments</u> <u>...</u>]
<b>node debug</b> [<b>-e</b> <u>string</u> | <u>script.js</u> | <b>-</b> | <u>&lt;host&gt;:&lt;port&gt;</u>] <u>...</u>
<b>node</b> [<b>--v8-options</b>]
<b>DESCRIPTION</b>
Node.js is a set of libraries for JavaScript which allows it to be used
outside of the browser. It is primarily focused on creating simple,
easy-to-build network clients and servers.
Execute <b>node</b> without arguments to start a REPL.
<b>OPTIONS</b>
<b>-v</b>, <b>--version</b>
Print node's version.
<b>-h</b>, <b>--help</b>
Print node command line options. The output of this option is
less detailed than this document.
<b>-e</b>, <b>--eval</b> <u>string</u>
Evaluate <u>string</u> as JavaScript.
<b>-p</b>, <b>--print</b> <u>string</u>
Identical to <b>-e</b>, but prints the result.
<b>-c</b>, <b>--check</b>
Check the script's syntax without executing it. Exits with an
error code if script is invalid.
<b>-i</b>, <b>--interactive</b>
Open the REPL even if stdin does not appear to be a terminal.
<b>-r</b>, <b>--require</b> <u>module</u>
Preload the specified <u>module</u> at startup. Follows `require()`'s
module resolution rules. <u>module</u> may be either a path to a file,
or a node module name.
<b>--inspect</b> <u>host:port</u>
Activate inspector on <u>host:port</u>. Default is <b>127.0.0.1:9229</b>.
V8 Inspector integration allows attaching Chrome DevTools and
IDEs to Node.js instances for debugging and profiling. It uses
the Chrome Debugging Protocol.
<b>--inspect-brk</b> <u>host:port</u>
Activate inspector on <u>host:port</u> and break at start of user
script.
<b>--inspect-port</b> <u>host:port</u>
Set the <u>host:port</u> to be used when the inspector is activated.
<b>--no-deprecation</b>
Silence deprecation warnings.
<b>--trace-deprecation</b>
Print stack traces for deprecations.
<b>--throw-deprecation</b>
Throw errors for deprecations.
<b>--pending-deprecation</b>
Emit pending deprecation warnings.
<b>--no-warnings</b>
Silence all process warnings (including deprecations).
<b>--napi-modules</b>
Enable loading native modules compiled with the ABI-stable
Node.js API (N-API) (experimental).
<b>--abort-on-uncaught-exception</b>
Aborting instead of exiting causes a core file to be generated
for analysis.
<b>--trace-warnings</b>
Print stack traces for process warnings (including deprecations).
<b>--redirect-warnings</b> <u>file</u>
Write process warnings to the given <u>file</u> instead of printing to
stderr.
<b>--trace-sync-io</b>
Print a stack trace whenever synchronous I/O is detected after
the first turn of the event loop.
<b>--no-force-async-hooks-checks</b>
Disable runtime checks for `async_hooks`. These will still be
enabled dynamically when `async_hooks` is enabled.
<b>--trace-events-enabled</b>
Enable the collection of trace event tracing information.
<b>--trace-event-categories</b> <u>categories</u>
A comma-separated list of categories that should be traced when
trace event tracing is enabled using <b>--trace-events-enabled</b>.
<b>--zero-fill-buffers</b>
Automatically zero-fills all newly allocated Buffer and Slow-
Buffer instances.
<b>--preserve-symlinks</b>
Instructs the module loader to preserve symbolic links when
resolving and caching modules.
<b>--track-heap-objects</b>
Track heap object allocations for heap snapshots.
<b>--prof-process</b>
Process V8 profiler output generated using the V8 option <b>--prof</b>.
<b>--v8-options</b>
Print V8 command-line options.
Note: V8 options allow words to be separated by both dashes (<b>-</b>)
or underscores (<b>_</b>).
For example, <b>--stack-trace-limit</b> is equivalent to
<b>--stack_trace_limit</b>.
<b>--v8-pool-size</b> <u>num</u>
Set V8's thread pool size which will be used to allocate back-
ground jobs. If set to 0 then V8 will choose an appropriate size
of the thread pool based on the number of online processors. If
the value provided is larger than V8's maximum, then the largest
value will be chosen.
<b>--tls-cipher-list</b> <u>list</u>
Specify an alternative default TLS cipher list. Requires Node.js
to be built with crypto support. (Default)
<b>--enable-fips</b>
Enable FIPS-compliant crypto at startup. Requires Node.js to be
built with <b>./configure --openssl-fips</b>.
<b>--force-fips</b>
Force FIPS-compliant crypto on startup (Cannot be disabled from
script code). Same requirements as <b>--enable-fips</b>.
<b>--openssl-config</b> <u>file</u>
Load an OpenSSL configuration file on startup. Among other uses,
this can be used to enable FIPS-compliant crypto if Node.js is
built with <b>./configure --openssl-fips</b>.
<b>--use-openssl-ca</b>, <b>--use-bundled-ca</b>
Use OpenSSL's default CA store or use bundled Mozilla CA store as
supplied by current Node.js version. The default store is
selectable at build-time.
Using OpenSSL store allows for external modifications of the
store. For most Linux and BSD distributions, this store is main-
tained by the distribution maintainers and system administrators.
OpenSSL CA store location is dependent on configuration of the
OpenSSL library but this can be altered at runtime using environ-
ment variables.
The bundled CA store, as supplied by Node.js, is a snapshot of
Mozilla CA store that is fixed at release time. It is identical
on all supported platforms.
See SSL_CERT_DIR and SSL_CERT_FILE.
<b>--icu-data-dir</b> <u>file</u>
Specify ICU data load path. Overrides NODE_ICU_DATA.
<b>--experimental-modules</b>
Enable experimental ES module support and caching modules.
<b>--experimental-vm-modules</b>
Enable experimental ES module support in VM module.
- Alias for stdin, analogous to the use of - in other command-line
utilities. The executed script is read from stdin, and remaining
arguments are passed to the script.
<b>--</b> Indicate the end of node options. Pass the rest of the arguments
to the script.
If no script filename or eval/print script is supplied prior to
this, then the next argument will be used as a script filename.
<b>ENVIRONMENT</b>
NODE_DEBUG <u>modules...</u>
Comma-separated list of core modules that should print debug
information.
NODE_DISABLE_COLORS
When set to <u>1</u>, colors will not be used in the REPL.
NODE_EXTRA_CA_CERTS <u>file</u>
When set, the well-known “root” CAs (like VeriSign) will be
extended with the extra certificates in <u>file</u>. The file should
consist of one or more trusted certificates in PEM format.
If <u>file</u> is missing or misformatted, a message will be emitted
once using <b>process.emitWarning()</b>, but any errors are otherwise
ignored.
NODE_ICU_DATA <u>file</u>
Data path for ICU (Intl object) data. Will extend linked-in data
when compiled with small-icu support.
NODE_NO_WARNINGS
When set to <u>1</u>, process warnings are silenced.
NODE_OPTIONS <u>options...</u>
A space-separated list of command-line <u>options</u>, which are inter-
preted as if they had been specified on the command-line before
the actual command (so they can be overridden). Node will exit
with an error if an option that is not allowed in the environment
is used, such as <b>--print</b> or a script file.
NODE_PATH <u>directories...</u>
A colon-separated list of <u>directories</u> prefixed to the module
search path.
NODE_PENDING_DEPRECATION
When set to <u>1</u>, emit pending deprecation warnings.
NODE_REPL_HISTORY <u>file</u>
Path to the <u>file</u> used to store persistent REPL history. The
default path is <b>~/.node_repl_history</b>, which is overridden by this
variable. Setting the value to an empty string ("" or " ") will
disable persistent REPL history.
OPENSSL_CONF <u>file</u>
Load an OpenSSL configuration file on startup. Among other uses,
this can be used to enable FIPS-compliant crypto if Node.js is
built with <b>./configure --openssl-fips</b>.
If the <b>--openssl-config</b> command-line option is used, this envi-
ronment variable is ignored.
SSL_CERT_DIR <u>dir</u>
If <b>--use-openssl-ca</b> is enabled, this overrides and sets OpenSSL's
directory containing trusted certificates.
SSL_CERT_FILE <u>file</u>
If <b>--use-openssl-ca</b> is enabled, this overrides and sets OpenSSL's
file containing trusted certificates.
NODE_REDIRECT_WARNINGS <u>file</u>
Write process warnings to the given <u>file</u> instead of printing to
stderr. Equivalent to passing <b>--redirect-warnings</b> <u>file</u> on com-
mand-line.
<b>BUGS</b>
Bugs are tracked in GitHub Issues: <b>https://github.com/nodejs/node/issues</b>
<b>COPYRIGHT</b>
Copyright Node.js contributors. Node.js is available under the MIT
license.
Node.js also includes external libraries that are available under a vari-
ety of licenses. See <b>https://github.com/nodejs/node/blob/master/LICENSE</b>
for the full license text.
<b>SEE ALSO</b>
Website: <b>https://nodejs.org/</b>
Documentation: <b>https://nodejs.org/api/</b>
GitHub repository &amp; Issue Tracker: <b>https://github.com/nodejs/node</b>
Mailing list: <b>http://groups.google.com/group/nodejs</b>
IRC (general questions): <b>chat.freenode.net #node.js</b> (unofficial)
IRC (Node.js core development): <b>chat.freenode.net #node-dev</b>
<b>AUTHORS</b>
Written and maintained by 1000+ contributors:
<b>https://github.com/nodejs/node/blob/master/AUTHORS</b>
February 3, 2018
</pre></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><title>Before</title><style> html{ background: black; color: white } a{ color: inherit; text-decoration: none } pre{ font: 1rem "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; font-variant-ligatures: none }</style></head><body><pre>
NODE(1) Node.js NODE(1)
<b>NAME</b>
node − Server-side JavaScript runtime
<b>SYNOPSIS</b>
<b>node</b> [<u>options</u>] [<u>v8</u> <u>options</u>] [<u>script.js</u> | <b>-e</b> "<u>script</u>" | <b>-</b> ] <b>[--]</b> [<u>argu-</u>
<u>ments</u>]
<b>node debug</b> [<u>script.js</u> | <b>−e</b> "<u>script</u>" | <u>&lt;host&gt;:&lt;port&gt;</u>] <u>...</u>
<b>node</b> [<b>−−v8-options</b>]
Execute without arguments to start the REPL.
<b>DESCRIPTION</b>
Node.js is a set of libraries for JavaScript which allows it to be used
outside of the browser. It is primarily focused on creating simple,
easy to build network clients and servers.
<b>OPTIONS</b>
<b>−v</b>, <b>−−version</b>
Print node's version.
<b>−h</b>, <b>−−help</b>
Print node command line options. The output of this option is
less detailed than this document.
<b>−e</b>, <b>−−eval</b> "<u>script</u>"
Evaluate the following argument as JavaScript.
<b>−p</b>, <b>−−print</b> "<u>script</u>"
Identical to <b>-e</b> but prints the result.
<b>−c</b>, <b>−−check</b>
Syntax check the script without executing.
<b>−i</b>, <b>−−interactive</b>
Open the REPL even if stdin does not appear to be a terminal.
<b>−r</b>, <b>−−require</b> <u>module</u>
Preload the specified module at startup. Follows `require()`'s
module resolution rules. <u>module</u> may be either a path to a file,
or a node module name.
<b>−−inspect</b><u>[=[host:]port]</u>
Activate inspector on host:port. Default is 127.0.0.1:9229.
V8 Inspector integration allows attaching Chrome DevTools and
IDEs to Node.js instances for debugging and profiling. It uses
the Chrome Debugging Protocol.
<b>−−inspect-brk</b><u>[=[host:]port]</u>
Activate inspector on host:port and break at start of user
script.
<b>−−inspect-port</b><u>=[host:]port</u>
Set the host:port to be used when the inspector is activated.
<b>−−no−deprecation</b>
Silence deprecation warnings.
<b>−−trace−deprecation</b>
Print stack traces for deprecations.
<b>−−throw−deprecation</b>
Throw errors for deprecations.
<b>−−pending−deprecation</b>
Emit pending deprecation warnings.
<b>−−no−warnings</b>
Silence all process warnings (including deprecations).
<b>−−napi−modules</b>
Enable loading native modules compiled with the ABI-stable
Node.js API (N-API) (experimental).
<b>−−abort−on−uncaught−exception</b>
Aborting instead of exiting causes a core file to be generated
for analysis.
<b>−−trace−warnings</b>
Print stack traces for process warnings (including depreca-
tions).
<b>−−redirect−warnings=</b><u>file</u>
Write process warnings to the given file instead of printing to
stderr.
<b>−−trace−sync−io</b>
Print a stack trace whenever synchronous I/O is detected after
the first turn of the event loop.
<b>−−no−force−async−hooks−checks</b>
Disables runtime checks for `async_hooks`. These will still be
enabled dynamically when `async_hooks` is enabled.
<b>−−trace−events−enabled</b>
Enables the collection of trace event tracing information.
<b>−−trace−event−categories</b> <u>categories</u>
A comma separated list of categories that should be traced when
trace event tracing is enabled using <b>--trace-events-enabled</b>.
<b>−−zero−fill−buffers</b>
Automatically zero-fills all newly allocated Buffer and Slow-
Buffer instances.
<b>−−preserve−symlinks</b>
Instructs the module loader to preserve symbolic links when
resolving and caching modules.
<b>−−track−heap-objects</b>
Track heap object allocations for heap snapshots.
<b>−−prof−process</b>
Process V8 profiler output generated using the V8 option <b>−−prof</b>
<b>−−v8−options</b>
Print V8 command line options.
Note: V8 options allow words to be separated by both dashes (<b>-</b>)
or underscores (<b>_</b>).
For example, <b>−−stack−trace−limit</b> is equivalent to
<b>−−stack_trace_limit</b>
<b>−−v8−pool−size</b>=<u>num</u>
Set v8's thread pool size which will be used to allocate back-
ground jobs. If set to 0 then V8 will choose an appropriate
size of the thread pool based on the number of online proces-
sors. If the value provided is larger than v8's max then the
largest value will be chosen.
<b>−−tls−cipher−list</b>=<u>list</u>
Specify an alternative default TLS cipher list. (Requires
Node.js to be built with crypto support. (Default))
<b>−−enable−fips</b>
Enable FIPS-compliant crypto at startup. (Requires Node.js to be
built with <b>./configure −−openssl−fips</b>)
<b>−−force−fips</b>
Force FIPS-compliant crypto on startup. (Cannot be disabled from
script code.) (Same requirements as <b>−−enable−fips</b>)
<b>−−openssl−config</b>=<u>file</u>
Load an OpenSSL configuration file on startup. Among other uses,
this can be used to enable FIPS-compliant crypto if Node.js is
built with <b>./configure −−openssl−fips</b>.
<b>−−use−openssl−ca,−−use−bundled−ca</b>
Use OpenSSL's default CA store or use bundled Mozilla CA store
as supplied by current Node.js version. The default store is
selectable at build-time.
Using OpenSSL store allows for external modifications of the
store. For most Linux and BSD distributions, this store is main-
tained by the distribution maintainers and system administra-
tors. OpenSSL CA store location is dependent on configuration of
the OpenSSL library but this can be altered at runtime using
environment variables.
The bundled CA store, as supplied by Node.js, is a snapshot of
Mozilla CA store that is fixed at release time. It is identical
on all supported platforms.
See <b>SSL_CERT_DIR</b> and <b>SSL_CERT_FILE</b>.
<b>−−icu−data−dir</b>=<u>file</u>
Specify ICU data load path. (overrides <b>NODE_ICU_DATA</b>)
<b>−</b> Alias for stdin, analogous to the use of - in other command line
utilities, meaning that the script will be read from stdin, and
the rest of the options are passed to that script.
<b>−−</b> Indicate the end of node options. Pass the rest of the arguments
to the script.
If no script filename or eval/print script is supplied prior to
this, then the next argument will be used as a script filename.
<b>ENVIRONMENT VARIABLES</b>
<b>NODE_DEBUG</b>=<u>module</u>[,<u>...</u>]
´,´−separated list of core modules that should print debug
information.
<b>NODE_DISABLE_COLORS</b>=<u>1</u>
When set to <u>1</u>, colors will not be used in the REPL.
<b>NODE_EXTRA_CA_CERTS</b>=<u>file</u>
When set, the well known "root" CAs (like VeriSign) will be
extended with the extra certificates in <u>file</u>. The file should
consist of one or more trusted certificates in PEM format. A
message will be emitted (once) with <b>process.emitWarning()</b> if the
file is missing or misformatted, but any errors are otherwise
ignored.
<b>NODE_ICU_DATA</b>=<u>file</u>
Data path for ICU (Intl object) data. Will extend linked-in data
when compiled with small−icu support.
<b>NODE_NO_WARNINGS</b>=<u>1</u>
When set to <u>1</u>, process warnings are silenced.
<b>NODE_OPTIONS</b>=<u>options...</u>
A space-separated list of command line options. <b>options...</b> are
interpreted as if they had been specified on the command line
before the actual command line (so they can be overridden).
Node will exit with an error if an option that is not allowed in
the environment is used, such as <b>-p</b> or a script file.
<b>NODE_PATH</b>=<u>path</u>[:<u>...</u>]
´:´−separated list of directories prefixed to the module search
path.
<b>NODE_PENDING_DEPRECATION</b>=<u>1</u>
When set to <u>1</u>, emit pending deprecation warnings.
<b>NODE_REPL_HISTORY</b>=<u>file</u>
Path to the file used to store the persistent REPL history. The
default path is <b>~/.node_repl_history</b>, which is overridden by
this variable. Setting the value to an empty string ("" or " ")
disables persistent REPL history.
<b>OPENSSL_CONF</b>=<u>file</u>
Load an OpenSSL configuration file on startup. Among other uses,
this can be used to enable FIPS-compliant crypto if Node.js is
built with <b>./configure −−openssl−fips</b>.
If the <b>−−openssl−config</b> command line option is used, the envi-
ronment variable is ignored.
<b>SSL_CERT_DIR</b>=<u>dir</u>
If <b>−−use−openssl−ca</b> is enabled, this overrides and sets
OpenSSL's directory containing trusted certificates.
<b>SSL_CERT_FILE</b>=<u>file</u>
If <b>−−use−openssl−ca</b> is enabled, this overrides and sets
OpenSSL's file containing trusted certificates.
<b>NODE_REDIRECT_WARNINGS=</b><u>file</u>
Write process warnings to the given file instead of printing to
stderr. (equivalent to using the −−redirect−warnings=<u>file</u> com-
mand-line argument).
<b>BUGS</b>
Bugs are tracked in GitHub Issues:
<b><u>https://github.com/nodejs/node/issues</u></b>
<b>AUTHORS</b>
Written and maintained by 1000+ contributors:
<b><u>https://github.com/nodejs/node/blob/master/AUTHORS</u></b>
<b>COPYRIGHT</b>
Copyright Node.js contributors. Node.js is available under the MIT
license.
Node.js also includes external libraries that are available under a
variety of licenses. See <b><u>https://github.com/nodejs/node/blob/mas-</u></b>
<b><u>ter/LICENSE</u></b> for the full license text.
<b>RESOURCES AND DOCUMENTATION</b>
Website: <b><u>https://nodejs.org/</u></b>
Documentation: <b><u>https://nodejs.org/api/</u></b>
GitHub repository &amp; Issue Tracker: <b><u>https://github.com/nodejs/node</u></b>
Mailing list: <b><u>http://groups.google.com/group/nodejs</u></b>
IRC (general questions): <b><u>chat.freenode.net</u></b> <b><u>#node.js</u></b> (unofficial)
IRC (Node.js core development): <b><u>chat.freenode.net</u></b> <b><u>#node-dev</u></b>
Node.js 2016 NODE(1)
</pre></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><title>After</title><style> html{ background: black; color: white } a{ color: inherit; text-decoration: none } pre{ font: 1rem "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; font-variant-ligatures: none }</style></head><body><pre>
NODE(1) BSD General Commands Manual NODE(1)
<b>NAME</b>
<b>node</b> — server-side JavaScript runtime
<b>SYNOPSIS</b>
<b>node</b> [<u>options</u>] [<u>v8-options</u>] [<b>-e</b> <u>string</u> | <u>script.js</u> | <b>-</b>] [<b>--</b>]
[<u>arguments</u> <u>...</u>]
<b>node debug</b> [<b>-e</b> <u>string</u> | <u>script.js</u> | <b>-</b> | <u>&lt;host&gt;:&lt;port&gt;</u>] <u>...</u>
<b>node</b> [<b>--v8-options</b>]
<b>DESCRIPTION</b>
Node.js is a set of libraries for JavaScript which allows it to be used
outside of the browser. It is primarily focused on creating simple,
easy-to-build network clients and servers.
Execute <b>node</b> without arguments to start a REPL.
<b>OPTIONS</b>
<b>-v</b>, <b>--version</b>
Print node's version.
<b>-h</b>, <b>--help</b>
Print node command line options. The output of this option is
less detailed than this document.
<b>-e</b>, <b>--eval</b> <u>string</u>
Evaluate <u>string</u> as JavaScript.
<b>-p</b>, <b>--print</b> <u>string</u>
Identical to <b>-e</b>, but prints the result.
<b>-c</b>, <b>--check</b>
Check the script's syntax without executing it. Exits with an
error code if script is invalid.
<b>-i</b>, <b>--interactive</b>
Open the REPL even if stdin does not appear to be a terminal.
<b>-r</b>, <b>--require</b> <u>module</u>
Preload the specified <u>module</u> at startup. Follows `require()`'s
module resolution rules. <u>module</u> may be either a path to a file,
or a node module name.
<b>--inspect</b>=<u>[host:]port</u>
Activate inspector on <u>host:port</u>. Default is <b>127.0.0.1:9229</b>.
V8 Inspector integration allows attaching Chrome DevTools and
IDEs to Node.js instances for debugging and profiling. It uses
the Chrome Debugging Protocol.
<b>--inspect-brk</b>=<u>[host:]port</u>
Activate inspector on <u>host:port</u> and break at start of user
script.
<b>--inspect-port</b>=<u>[host:]port</u>
Set the <u>host:port</u> to be used when the inspector is activated.
<b>--no-deprecation</b>
Silence deprecation warnings.
<b>--trace-deprecation</b>
Print stack traces for deprecations.
<b>--throw-deprecation</b>
Throw errors for deprecations.
<b>--pending-deprecation</b>
Emit pending deprecation warnings.
<b>--no-warnings</b>
Silence all process warnings (including deprecations).
<b>--napi-modules</b>
Enable loading native modules compiled with the ABI-stable
Node.js API (N-API) (experimental).
<b>--abort-on-uncaught-exception</b>
Aborting instead of exiting causes a core file to be generated
for analysis.
<b>--trace-warnings</b>
Print stack traces for process warnings (including deprecations).
<b>--redirect-warnings</b>=<u>file</u>
Write process warnings to the given <u>file</u> instead of printing to
stderr.
<b>--trace-sync-io</b>
Print a stack trace whenever synchronous I/O is detected after
the first turn of the event loop.
<b>--no-force-async-hooks-checks</b>
Disable runtime checks for `async_hooks`. These will still be
enabled dynamically when `async_hooks` is enabled.
<b>--trace-events-enabled</b>
Enable the collection of trace event tracing information.
<b>--trace-event-categories</b> <u>categories</u>
A comma-separated list of categories that should be traced when
trace event tracing is enabled using <b>--trace-events-enabled</b>.
<b>--zero-fill-buffers</b>
Automatically zero-fills all newly allocated Buffer and Slow-
Buffer instances.
<b>--preserve-symlinks</b>
Instructs the module loader to preserve symbolic links when
resolving and caching modules.
<b>--track-heap-objects</b>
Track heap object allocations for heap snapshots.
<b>--prof-process</b>
Process V8 profiler output generated using the V8 option <b>--prof</b>.
<b>--v8-options</b>
Print V8 command-line options.
Note: V8 options allow words to be separated by both dashes (<b>-</b>)
or underscores (<b>_</b>).
For example, <b>--stack-trace-limit</b> is equivalent to
<b>--stack_trace_limit</b>.
<b>--v8-pool-size</b>=<u>num</u>
Set V8's thread pool size which will be used to allocate back-
ground jobs. If set to 0 then V8 will choose an appropriate size
of the thread pool based on the number of online processors. If
the value provided is larger than V8's maximum, then the largest
value will be chosen.
<b>--tls-cipher-list</b>=<u>list</u>
Specify an alternative default TLS cipher list. Requires Node.js
to be built with crypto support. (Default)
<b>--enable-fips</b>
Enable FIPS-compliant crypto at startup. Requires Node.js to be
built with <b>./configure --openssl-fips</b>.
<b>--force-fips</b>
Force FIPS-compliant crypto on startup (Cannot be disabled from
script code). Same requirements as <b>--enable-fips</b>.
<b>--openssl-config</b>=<u>file</u>
Load an OpenSSL configuration file on startup. Among other uses,
this can be used to enable FIPS-compliant crypto if Node.js is
built with <b>./configure --openssl-fips</b>.
<b>--use-openssl-ca</b>, <b>--use-bundled-ca</b>
Use OpenSSL's default CA store or use bundled Mozilla CA store as
supplied by current Node.js version. The default store is
selectable at build-time.
Using OpenSSL store allows for external modifications of the
store. For most Linux and BSD distributions, this store is main-
tained by the distribution maintainers and system administrators.
OpenSSL CA store location is dependent on configuration of the
OpenSSL library but this can be altered at runtime using environ-
ment variables.
The bundled CA store, as supplied by Node.js, is a snapshot of
Mozilla CA store that is fixed at release time. It is identical
on all supported platforms.
See SSL_CERT_DIR and SSL_CERT_FILE.
<b>--icu-data-dir</b>=<u>file</u>
Specify ICU data load path. Overrides NODE_ICU_DATA.
<b>--experimental-modules</b>
Enable experimental ES module support and caching modules.
<b>--experimental-vm-modules</b>
Enable experimental ES module support in VM module.
<b>-</b> Alias for stdin, analogous to the use of - in other command-line
utilities. The executed script is read from stdin, and remaining
arguments are passed to the script.
<b>--</b> Indicate the end of node options. Pass the rest of the arguments
to the script.
If no script filename or eval/print script is supplied prior to
this, then the next argument will be used as a script filename.
<b>ENVIRONMENT</b>
NODE_DEBUG <u>modules...</u>
Comma-separated list of core modules that should print debug
information.
NODE_DISABLE_COLORS
When set to <u>1</u>, colors will not be used in the REPL.
NODE_EXTRA_CA_CERTS <u>file</u>
When set, the well-known “root” CAs (like VeriSign) will be
extended with the extra certificates in <u>file</u>. The file should
consist of one or more trusted certificates in PEM format.
If <u>file</u> is missing or misformatted, a message will be emitted
once using <b>process.emitWarning()</b>, but any errors are otherwise
ignored.
NODE_ICU_DATA <u>file</u>
Data path for ICU (Intl object) data. Will extend linked-in data
when compiled with small-icu support.
NODE_NO_WARNINGS
When set to <u>1</u>, process warnings are silenced.
NODE_OPTIONS <u>options...</u>
A space-separated list of command-line <u>options</u>, which are inter-
preted as if they had been specified on the command-line before
the actual command (so they can be overridden). Node will exit
with an error if an option that is not allowed in the environment
is used, such as <b>--print</b> or a script file.
NODE_PATH <u>directories...</u>
A colon-separated list of <u>directories</u> prefixed to the module
search path.
NODE_PENDING_DEPRECATION
When set to <u>1</u>, emit pending deprecation warnings.
NODE_REPL_HISTORY <u>file</u>
Path to the <u>file</u> used to store persistent REPL history. The
default path is <b>~/.node_repl_history</b>, which is overridden by this
variable. Setting the value to an empty string ("" or " ") will
disable persistent REPL history.
OPENSSL_CONF <u>file</u>
Load an OpenSSL configuration file on startup. Among other uses,
this can be used to enable FIPS-compliant crypto if Node.js is
built with <b>./configure --openssl-fips</b>.
If the <b>--openssl-config</b> command-line option is used, this envi-
ronment variable is ignored.
SSL_CERT_DIR <u>dir</u>
If <b>--use-openssl-ca</b> is enabled, this overrides and sets OpenSSL's
directory containing trusted certificates.
SSL_CERT_FILE <u>file</u>
If <b>--use-openssl-ca</b> is enabled, this overrides and sets OpenSSL's
file containing trusted certificates.
NODE_REDIRECT_WARNINGS <u>file</u>
Write process warnings to the given <u>file</u> instead of printing to
stderr. Equivalent to passing <b>--redirect-warnings</b> <u>file</u> on com-
mand-line.
<b>BUGS</b>
Bugs are tracked in GitHub Issues: <b>https://github.com/nodejs/node/issues</b>
<b>COPYRIGHT</b>
Copyright Node.js contributors. Node.js is available under the MIT
license.
Node.js also includes external libraries that are available under a vari-
ety of licenses. See <b>https://github.com/nodejs/node/blob/master/LICENSE</b>
for the full license text.
<b>SEE ALSO</b>
Website: <b>https://nodejs.org/</b>
Documentation: <b>https://nodejs.org/api/</b>
GitHub repository &amp; Issue Tracker: <b>https://github.com/nodejs/node</b>
Mailing list: <b>http://groups.google.com/group/nodejs</b>
IRC (general questions): <b>chat.freenode.net #node.js</b> (unofficial)
IRC (Node.js core development): <b>chat.freenode.net #node-dev</b>
<b>AUTHORS</b>
Written and maintained by 1000+ contributors:
<b>https://github.com/nodejs/node/blob/master/AUTHORS</b>
February 16, 2018
</pre></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment