diff --git a/doc/api/cli.md b/doc/api/cli.md index 8810d29d3f2..97674a79977 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1457,12 +1457,21 @@ forked processes, or clustered processes. This configures Node.js to interpret `--eval` or `STDIN` input as CommonJS or as an ES module. Valid values are `"commonjs"`, `"module"`, `"module-typescript"` and `"commonjs-typescript"`. The `"-typescript"` values are not available with the flag `--no-experimental-strip-types`. -The default is `"commonjs"`. +The default is no value, or `"commonjs"` if `--no-experimental-detect-module` is passed. If `--input-type` is not provided, Node.js will try to detect the syntax with the following steps: