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: update NODE_OPTIONS section in cli.md #21229

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 10 additions & 2 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,22 +513,30 @@ that is not allowed in the environment is used, such as `-p` or a script file.

Node options that are allowed are:
- `--enable-fips`
`--experimental-modules`
`--experimental-repl-await`
`--experimental-vm-modules`
`--experimental-worker`
- `--force-fips`
- `--icu-data-dir`
- `--inspect`
- `--inspect-brk`
- `--inspect-port`
- `--inspect`
`--loader`
`--napi-modules`
- `--no-deprecation`
`--no-force-async-hooks-checks`
- `--no-warnings`
- `--openssl-config`
`--pending-deprecation`
- `--redirect-warnings`
- `--require`, `-r`
- `--throw-deprecation`
- `--tls-cipher-list`
- `--trace-deprecation`
- `--trace-events-categories`
- `--trace-events-enabled`
- `--trace-event-file-pattern`
- `--trace-events-enabled`
- `--trace-sync-io`
- `--trace-warnings`
- `--track-heap-objects`
Expand Down
1 change: 1 addition & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3155,6 +3155,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,

static const char* whitelist[] = {
// Node options, sorted in `node --help` order for ease of comparison.
// Please, update NODE_OPTIONS section in cli.md if changed.
"--enable-fips",
"--experimental-modules",
"--experimental-repl-await",
Expand Down