Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
fb89be6
doc: use correct Error type for EventEmitter.defaultMaxListener
Trott Sep 5, 2020
25f93f3
test: add more valid results to test-trace-atomics-wait
addaleax Sep 5, 2020
f3c45a1
Revert "build: require "allow edits" to be checked"
Trott Sep 7, 2020
9faaa65
test: separate the test fixtures between ICU and URL
Leko Sep 6, 2020
1cf9934
doc: make minor improvements to module.md
Trott Sep 6, 2020
bc38485
test: fix comment about DNS lookup test
tniessen Sep 6, 2020
3573545
crypto: improve randomInt out-of-range error message
Trott Sep 7, 2020
1bb0ed3
crypto: improve invalid arg type message for randomInt()
Trott Sep 7, 2020
6627c1f
test: remove setMaxListeners in test-crypto-random
tniessen Sep 6, 2020
0a2610a
doc: avoid double-while sentence in perf_hooks.md
Trott Sep 6, 2020
93e4d54
doc: add note about path.basename on Windows
tniessen Sep 5, 2020
379c5ce
test: revise test-policy-integrity
Trott Sep 8, 2020
314483c
module: fix specifier resolution option value
himself65 Sep 8, 2020
79c6d92
doc: fix broken links in deprecations.md
Trott Sep 8, 2020
f4e958f
doc: fix broken link in fs.md
Trott Sep 8, 2020
5c8d208
doc: fix broken link in http2.md
Trott Sep 9, 2020
aa93c1c
doc: fix broken link in perf_hooks.md
Trott Sep 9, 2020
b75822d
doc,test: specify and test CLI option precedence rules
addaleax Sep 8, 2020
6e622d6
esm: better package.json parser errors
guybedford Sep 9, 2020
122edad
doc: update security process
mhdawson Sep 8, 2020
d4389b5
deps: update to uvwasi 0.0.11
cjihrig Sep 8, 2020
46b9f4b
doc: add missing changes entry for breakEvalOnSigint REPL option
addaleax Sep 10, 2020
f4e714a
doc: update my email address
mhdawson Sep 8, 2020
4bde865
errors: simplify ERR_REQUIRE_ESM message generation
Trott Sep 9, 2020
df70861
doc: simplify circular dependencies text in modules.md
Trott Sep 9, 2020
977b0ed
http: allow Content-Length header for 304 responses
BlackYoup Aug 18, 2020
f21a5c6
meta: update my collab entry
devsnek Sep 12, 2020
5229ffa
buffer: adjust validation to account for buffer.kMaxLength
addaleax Sep 9, 2020
8ea2853
http: only set keep-alive when not exists
atian25 Sep 8, 2020
331142c
doc: update contact info for Ash Cripps
Sep 10, 2020
7dbcd24
doc: fix left nav color contrast
Trott Sep 10, 2020
e410514
doc: improve table accessibility
Trott Sep 10, 2020
ae85228
doc: perform minor cleanup on cli.md
Trott Sep 11, 2020
12f2934
meta: add links to OpenJSF Slack
mmarchini Sep 9, 2020
99785e4
doc: fix minor punctuation issue in path.md
amilajack Sep 9, 2020
f2cc1c2
build: filter issues & PRs to auto close by matching on stalled label
phillipj Sep 11, 2020
e8d479e
doc: perform cleanup on security-release-process.md
Trott Sep 11, 2020
dc4c569
doc: add missing copyFile change history
codebytere Sep 4, 2020
176e9e4
doc: fix broken links in modules.md
Trott Sep 14, 2020
32d1731
doc: update process.release
schamberg97 Sep 12, 2020
aea3f77
doc: update eventLoopUtilization documentation
addaleax Sep 11, 2020
0a97f44
tools: update ESLint to 7.9.0
cjihrig Sep 12, 2020
066148d
doc: remove problematic auto-linking of curl man pages
Trott Sep 13, 2020
49da459
test: improve pummel/test-timers.js
Trott Sep 13, 2020
76e24f9
module: use isURLInstance instead of instanceof
aduh95 Aug 27, 2020
beb75bd
fs: loosen validation to allow objects with an own toString function
ljharb Aug 31, 2020
910deff
doc: fix broken link in crypto.md
Trott Sep 14, 2020
c1e16d1
doc: fix deprecation documentation inconsistencies
aduh95 Sep 6, 2020
e5fffe2
doc: fix missing word in dgram.md
Nibbler999 Sep 16, 2020
70ec369
doc: replace "you should do X" with "do X"
Trott Sep 14, 2020
c1c93a6
doc: use command-line/command line consistently
Trott Sep 15, 2020
dbfd3b2
doc: remove "end user"
Trott Sep 15, 2020
92a14d3
doc: add technical values document
mhdawson Sep 10, 2020
3d78686
build: increase API requests for stale action
phillipj Sep 16, 2020
8357b56
test: add wasi readdir() test
cjihrig Sep 1, 2020
64ac5c6
doc: fix small grammatical issues in timers.md
wjabbour Sep 15, 2020
7f3b2b2
n-api: add more property defaults
Flarna Sep 15, 2020
2308be0
doc: fix header level for error code
Trott Sep 15, 2020
7610fe5
doc: add issue labels sections to release guide
targos Sep 16, 2020
6d4ab36
doc: update attributes used by n-api samples (#35220)
Flarna Sep 18, 2020
6119e95
doc: clarify use of NAPI_EXPERIMENTAL
mhdawson Sep 14, 2020
ca11816
n-api: create N-API version 7
Sep 15, 2020
d195d20
doc: relax prohibition on personal pronouns
Trott Jul 14, 2020
b9161f4
doc: sort repl references in ASCII order
Trott Sep 16, 2020
b62d9b4
doc: remove excessive formatting in dgram.md
Trott Sep 16, 2020
2bc335d
doc: clarify napi_property_attributes text
Trott Sep 18, 2020
e29e2da
test: improve assertions in pummel/test-timers
Trott Sep 15, 2020
d82dd0c
doc: revise stability section of values doc
Trott Sep 17, 2020
b860a7f
doc: standardize on _backward_
Trott Sep 17, 2020
4f4faa8
readline: fix key name for function keys with modifiers
elie-g Sep 19, 2020
d8b5714
https: set requestTimeout default to 0
ronag Sep 18, 2020
836680a
doc: use present tense in error messages
Trott Sep 12, 2020
efd5c83
2020-09-22, Version 14.12.0 (Current)
ruyadorno Sep 21, 2020
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
Prev Previous commit
Next Next commit
doc: perform minor cleanup on cli.md
* sort references in ASCII order
* merge logically-connected single-sentence paragraphs
* remove _please_ from referrals to other docs
* remove unnecessary italics
* make some text more concise
* change some instances of future tense to present tense

PR-URL: #35152
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
  • Loading branch information
Trott authored and ruyadorno committed Sep 17, 2020
commit ae85228e54cad6f1ab002db51d50cc8d37f654c3
58 changes: 28 additions & 30 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To view this documentation as a manual page in a terminal, run `man node`.

Execute without arguments to start the [REPL][].

_For more info about `node inspect`, please see the [debugger][] documentation._
For more info about `node inspect`, see the [debugger][] documentation.

## Options
<!-- YAML
Expand All @@ -30,22 +30,21 @@ changes:
-->

All options, including V8 options, allow words to be separated by both
dashes (`-`) or underscores (`_`).
dashes (`-`) or underscores (`_`). For example, `--pending-deprecation` is
equivalent to `--pending_deprecation`.

For example, `--pending-deprecation` is equivalent to `--pending_deprecation`.

If an option that takes a single value, for example `--max-http-header-size`,
is passed more than once, then the last passed value will be used. Options
from the command line take precedence over options passed through the
[`NODE_OPTIONS`][] environment variable.
If an option that takes a single value (such as `--max-http-header-size`) is
passed more than once, then the last passed value is used. Options from the
command line take precedence over options passed through the [`NODE_OPTIONS`][]
environment variable.

### `-`
<!-- YAML
added: v8.0.0
-->

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
meaning that the script is read from stdin, and the rest of the options
are passed to that script.

### `--`
Expand All @@ -55,7 +54,7 @@ added: v6.11.0

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.
the next argument is used as a script filename.

### `--abort-on-uncaught-exception`
<!-- YAML
Expand Down Expand Up @@ -106,10 +105,10 @@ added: v12.0.0
Starts the V8 CPU profiler on start up, and writes the CPU profile to disk
before exit.

If `--cpu-prof-dir` is not specified, the generated profile will be placed
If `--cpu-prof-dir` is not specified, the generated profile is placed
in the current working directory.

If `--cpu-prof-name` is not specified, the generated profile will be
If `--cpu-prof-name` is not specified, the generated profile is
named `CPU.${yyyymmdd}.${hhmmss}.${pid}.${tid}.${seq}.cpuprofile`.

```console
Expand Down Expand Up @@ -152,7 +151,7 @@ Specify the file name of the CPU profile generated by `--cpu-prof`.

### `--diagnostic-dir=directory`

Set the directory to which all diagnostic output files will be written to.
Set the directory to which all diagnostic output files are written.
Defaults to current working directory.

Affects the default output directory of:
Expand All @@ -166,8 +165,8 @@ added: v13.12.0
-->

Disable the `Object.prototype.__proto__` property. If `mode` is `delete`, the
property will be removed entirely. If `mode` is `throw`, accesses to the
property will throw an exception with the code `ERR_PROTO_ACCESS`.
property is removed entirely. If `mode` is `throw`, accesses to the
property throw an exception with the code `ERR_PROTO_ACCESS`.

### `--disallow-code-generation-from-strings`
<!-- YAML
Expand Down Expand Up @@ -254,10 +253,10 @@ Sets the resolution algorithm for resolving ES module specifiers. Valid options
are `explicit` and `node`.

The default is `explicit`, which requires providing the full path to a
module. The `node` mode will enable support for optional file extensions and
module. The `node` mode enables support for optional file extensions and
the ability to import a directory that has an index file.

Please see [customizing ESM specifier resolution][] for example usage.
See [customizing ESM specifier resolution][] for example usage.

### `--experimental-vm-modules`
<!-- YAML
Expand Down Expand Up @@ -347,10 +346,10 @@ added: v12.4.0
Starts the V8 heap profiler on start up, and writes the heap profile to disk
before exit.

If `--heap-prof-dir` is not specified, the generated profile will be placed
If `--heap-prof-dir` is not specified, the generated profile is placed
in the current working directory.

If `--heap-prof-name` is not specified, the generated profile will be
If `--heap-prof-name` is not specified, the generated profile is
named `Heap.${yyyymmdd}.${hhmmss}.${pid}.${tid}.${seq}.heapprofile`.

```console
Expand Down Expand Up @@ -621,8 +620,8 @@ This flag exists so that the main module can be opted-in to the same behavior
that `--preserve-symlinks` gives to all other imports; they are separate flags,
however, for backward compatibility with older Node.js versions.

`--preserve-symlinks-main` does not imply `--preserve-symlinks`; it
is expected that `--preserve-symlinks-main` will be used in addition to
`--preserve-symlinks-main` does not imply `--preserve-symlinks`; use
`--preserve-symlinks-main` in addition to
`--preserve-symlinks` when it is not desirable to follow symlinks before
resolving relative paths.

Expand Down Expand Up @@ -1192,8 +1191,7 @@ compound after anything in `options...`. Node.js will exit with an error if
an option that is not allowed in the environment is used, such as `-p` or a
script file.

In case an option value happens to contain a space (for example a path listed
in `--require`), it must be escaped using double quotes. For example:
If an option value contains a space, it can be escaped using double quotes:

```bash
NODE_OPTIONS='--require "./my path/file.js"'
Expand Down Expand Up @@ -1555,22 +1553,22 @@ On a machine with 2GB of memory, consider setting this to
$ node --max-old-space-size=1536 index.js
```

[Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/
[REPL]: repl.html
[ScriptCoverage]: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptCoverage
[Source Map]: https://sourcemaps.info/spec.html
[Subresource Integrity]: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
[`--openssl-config`]: #cli_openssl_config_file
[`Atomics.wait()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait
[`Buffer`]: buffer.html#buffer_class_buffer
[`SlowBuffer`]: buffer.html#buffer_class_slowbuffer
[`NODE_OPTIONS`]: #cli_node_options_options
[`SlowBuffer`]: buffer.html#buffer_class_slowbuffer
[`process.setUncaughtExceptionCaptureCallback()`]: process.html#process_process_setuncaughtexceptioncapturecallback_fn
[`tls.DEFAULT_MAX_VERSION`]: tls.html#tls_tls_default_max_version
[`tls.DEFAULT_MIN_VERSION`]: tls.html#tls_tls_default_min_version
[`unhandledRejection`]: process.html#process_event_unhandledrejection
[`worker_threads.threadId`]: worker_threads.html#worker_threads_worker_threadid
[Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/
[REPL]: repl.html
[ScriptCoverage]: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptCoverage
[Source Map]: https://sourcemaps.info/spec.html
[Subresource Integrity]: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
[context-aware]: addons.html#addons_context_aware_addons
[customizing ESM specifier resolution]: esm.html#esm_customizing_esm_specifier_resolution_algorithm
[debugger]: debugger.html
Expand Down