File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1079,12 +1079,13 @@ Modules preloaded with `--require` will run before modules preloaded with `--imp
10791079added: v12.0.0
10801080-->
10811081
1082- This configures Node.js to interpret string input as CommonJS or as an ES
1083- module. String input is input via ` --eval ` , ` --print ` , or ` STDIN ` .
1082+ This configures Node.js to interpret ` --eval ` or ` STDIN ` input as CommonJS or
1083+ as an ES module. Valid values are ` "commonjs" ` or ` "module" ` . The default is
1084+ ` "commonjs" ` unless [ ` --experimental-default-type=module ` ] [ ] is used.
10841085
1085- Valid values are ` "commonjs" ` and ` "module" ` . The default is ` "commonjs" ` .
1086-
1087- The REPL does not support this option .
1086+ The REPL does not support this option. Usage of ` --input-type=module ` with
1087+ [ ` --print ` ] [ ] will throw an error, as ` --print ` does not support ES module
1088+ syntax .
10881089
10891090### ` --insecure-http-parser `
10901091
@@ -2876,6 +2877,7 @@ done
28762877[ `--import` ] : #--importmodule
28772878[ `--openssl-config` ] : #--openssl-configfile
28782879[ `--preserve-symlinks` ] : #--preserve-symlinks
2880+ [ `--print` ] : #-p---print-script
28792881[ `--redirect-warnings` ] : #--redirect-warningsfile
28802882[ `--require` ] : #-r---require-module
28812883[ `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