File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1057,12 +1057,13 @@ Modules preloaded with `--require` will run before modules preloaded with `--imp
10571057added: v12.0.0
10581058-->
10591059
1060- This configures Node.js to interpret string input as CommonJS or as an ES
1061- module. String input is input via ` --eval ` , ` --print ` , or ` STDIN ` .
1060+ This configures Node.js to interpret ` --eval ` or ` STDIN ` input as CommonJS or
1061+ as an ES module. Valid values are ` "commonjs" ` or ` "module" ` . The default is
1062+ ` "commonjs" ` unless [ ` --experimental-default-type=module ` ] [ ] is used.
10621063
1063- Valid values are ` "commonjs" ` and ` "module" ` . The default is ` "commonjs" ` .
1064-
1065- The REPL does not support this option .
1064+ The REPL does not support this option. Usage of ` --input-type=module ` with
1065+ [ ` --print ` ] [ ] will throw an error, as ` --print ` does not support ES module
1066+ syntax .
10661067
10671068### ` --insecure-http-parser `
10681069
@@ -2841,6 +2842,7 @@ done
28412842[ `--import` ] : #--importmodule
28422843[ `--openssl-config` ] : #--openssl-configfile
28432844[ `--preserve-symlinks` ] : #--preserve-symlinks
2845+ [ `--print` ] : #-p---print-script
28442846[ `--redirect-warnings` ] : #--redirect-warningsfile
28452847[ `--require` ] : #-r---require-module
28462848[ `Atomics.wait()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait
You can’t perform that action at this time.
0 commit comments