@@ -556,6 +556,18 @@ Affects the default output directory of:
556
556
* [ ` --heap-prof-dir ` ] [ ]
557
557
* [ ` --redirect-warnings ` ] [ ]
558
558
559
+ ### ` --disable-proto=mode `
560
+
561
+ <!-- YAML
562
+ added:
563
+ - v13.12.0
564
+ - v12.17.0
565
+ -->
566
+
567
+ Disable the ` Object.prototype.__proto__ ` property. If ` mode ` is ` delete ` , the
568
+ property is removed entirely. If ` mode ` is ` throw ` , accesses to the
569
+ property throw an exception with the code ` ERR_PROTO_ACCESS ` .
570
+
559
571
### ` --disable-warning=code-or-type `
560
572
561
573
> Stability: 1.1 - Active development
@@ -650,18 +662,6 @@ users can at least run WebAssembly (with less optimal performance)
650
662
when the virtual memory address space available to their Node.js
651
663
process is lower than what the V8 WebAssembly memory cage needs.
652
664
653
- ### ` --disable-proto=mode `
654
-
655
- <!-- YAML
656
- added:
657
- - v13.12.0
658
- - v12.17.0
659
- -->
660
-
661
- Disable the ` Object.prototype.__proto__ ` property. If ` mode ` is ` delete ` , the
662
- property is removed entirely. If ` mode ` is ` throw ` , accesses to the
663
- property throw an exception with the code ` ERR_PROTO_ACCESS ` .
664
-
665
665
### ` --disallow-code-generation-from-strings `
666
666
667
667
<!-- YAML
@@ -672,25 +672,6 @@ Make built-in language features like `eval` and `new Function` that generate
672
672
code from strings throw an exception instead. This does not affect the Node.js
673
673
` node:vm ` module.
674
674
675
- ### ` --expose-gc `
676
-
677
- <!-- YAML
678
- added:
679
- - v22.3.0
680
- - v20.18.0
681
- -->
682
-
683
- > Stability: 1 - Experimental. This flag is inherited from V8 and is subject to
684
- > change upstream.
685
-
686
- This flag will expose the gc extension from V8.
687
-
688
- ``` js
689
- if (globalThis .gc ) {
690
- globalThis .gc ();
691
- }
692
- ```
693
-
694
675
### ` --dns-result-order=order `
695
676
696
677
<!-- YAML
@@ -797,6 +778,15 @@ node --entry-url --experimental-strip-types 'file.ts?query#hash'
797
778
node --entry-url ' data:text/javascript,console.log("Hello")'
798
779
```
799
780
781
+ ### ` --env-file-if-exists=config `
782
+
783
+ <!-- YAML
784
+ added: v22.9.0
785
+ -->
786
+
787
+ Behavior is the same as [ ` --env-file ` ] [ ] , but an error is not thrown if the file
788
+ does not exist.
789
+
800
790
### ` --env-file=config `
801
791
802
792
> Stability: 1.1 - Active development
@@ -864,15 +854,6 @@ export USERNAME="nodejs" # will result in `nodejs` as the value.
864
854
If you want to load environment variables from a file that may not exist, you
865
855
can use the [ ` --env-file-if-exists ` ] [ ] flag instead.
866
856
867
- ### ` --env-file-if-exists=config `
868
-
869
- <!-- YAML
870
- added: v22.9.0
871
- -->
872
-
873
- Behavior is the same as [ ` --env-file ` ] [ ] , but an error is not thrown if the file
874
- does not exist.
875
-
876
857
### ` -e ` , ` --eval "script" `
877
858
878
859
<!-- YAML
@@ -928,17 +909,6 @@ files with no extension will be treated as WebAssembly if they begin with the
928
909
WebAssembly magic number (` \0asm ` ); otherwise they will be treated as ES module
929
910
JavaScript.
930
911
931
- ### ` --experimental-transform-types `
932
-
933
- <!-- YAML
934
- added: v22.7.0
935
- -->
936
-
937
- > Stability: 1.1 - Active development
938
-
939
- Enables the transformation of TypeScript-only syntax into JavaScript code.
940
- Implies ` --experimental-strip-types ` and ` --enable-source-maps ` .
941
-
942
912
### ` --experimental-eventsource `
943
913
944
914
<!-- YAML
@@ -1018,6 +988,18 @@ following permissions are restricted:
1018
988
* WASI - manageable through [ ` --allow-wasi ` ] [ ] flag
1019
989
* Addons - manageable through [ ` --allow-addons ` ] [ ] flag
1020
990
991
+ ### ` --experimental-print-required-tla `
992
+
993
+ <!-- YAML
994
+ added:
995
+ - v22.0.0
996
+ - v20.17.0
997
+ -->
998
+
999
+ If the ES module being ` require() ` 'd contains top-level ` await ` , this flag
1000
+ allows Node.js to evaluate the module, try to locate the
1001
+ top-level awaits, and print their location to help users find them.
1002
+
1021
1003
### ` --experimental-require-module `
1022
1004
1023
1005
<!-- YAML
@@ -1114,6 +1096,17 @@ added:
1114
1096
1115
1097
Enable module mocking in the test runner.
1116
1098
1099
+ ### ` --experimental-transform-types `
1100
+
1101
+ <!-- YAML
1102
+ added: v22.7.0
1103
+ -->
1104
+
1105
+ > Stability: 1.1 - Active development
1106
+
1107
+ Enables the transformation of TypeScript-only syntax into JavaScript code.
1108
+ Implies ` --experimental-strip-types ` and ` --enable-source-maps ` .
1109
+
1117
1110
### ` --experimental-vm-modules `
1118
1111
1119
1112
<!-- YAML
@@ -1159,6 +1152,25 @@ added: v22.4.0
1159
1152
1160
1153
Enable experimental [ ` Web Storage ` ] [ ] support.
1161
1154
1155
+ ### ` --expose-gc `
1156
+
1157
+ <!-- YAML
1158
+ added:
1159
+ - v22.3.0
1160
+ - v20.18.0
1161
+ -->
1162
+
1163
+ > Stability: 1 - Experimental. This flag is inherited from V8 and is subject to
1164
+ > change upstream.
1165
+
1166
+ This flag will expose the gc extension from V8.
1167
+
1168
+ ``` js
1169
+ if (globalThis .gc ) {
1170
+ globalThis .gc ();
1171
+ }
1172
+ ```
1173
+
1162
1174
### ` --force-context-aware `
1163
1175
1164
1176
<!-- YAML
@@ -1437,20 +1449,6 @@ When enabled, the parser will accept the following:
1437
1449
All the above will expose your application to request smuggling
1438
1450
or poisoning attack. Avoid using this option.
1439
1451
1440
- ### ` --inspect[=[host:]port] `
1441
-
1442
- <!-- YAML
1443
- added: v6.3.0
1444
- -->
1445
-
1446
- Activate inspector on ` host:port ` . Default is ` 127.0.0.1:9229 ` . If port ` 0 ` is
1447
- specified, a random available port will be used.
1448
-
1449
- V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
1450
- and profile Node.js instances. The tools attach to Node.js instances via a
1451
- tcp port and communicate using the [ Chrome DevTools Protocol] [ ] .
1452
- See [ V8 Inspector integration for Node.js] [ ] for further explanation on Node.js debugger.
1453
-
1454
1452
<!-- Anchor to make sure old links find a target -->
1455
1453
1456
1454
<a id =" inspector_security " ></a >
@@ -1519,6 +1517,20 @@ a random available port will be used.
1519
1517
1520
1518
See [ V8 Inspector integration for Node.js] [ ] for further explanation on Node.js debugger.
1521
1519
1520
+ ### ` --inspect[=[host:]port] `
1521
+
1522
+ <!-- YAML
1523
+ added: v6.3.0
1524
+ -->
1525
+
1526
+ Activate inspector on ` host:port ` . Default is ` 127.0.0.1:9229 ` . If port ` 0 ` is
1527
+ specified, a random available port will be used.
1528
+
1529
+ V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
1530
+ and profile Node.js instances. The tools attach to Node.js instances via a
1531
+ tcp port and communicate using the [ Chrome DevTools Protocol] [ ] .
1532
+ See [ V8 Inspector integration for Node.js] [ ] for further explanation on Node.js debugger.
1533
+
1522
1534
### ` -i ` , ` --interactive `
1523
1535
1524
1536
<!-- YAML
@@ -1879,18 +1891,6 @@ changes:
1879
1891
1880
1892
Identical to ` -e ` but prints the result.
1881
1893
1882
- ### ` --experimental-print-required-tla `
1883
-
1884
- <!-- YAML
1885
- added:
1886
- - v22.0.0
1887
- - v20.17.0
1888
- -->
1889
-
1890
- If the ES module being ` require() ` 'd contains top-level ` await ` , this flag
1891
- allows Node.js to evaluate the module, try to locate the
1892
- top-level awaits, and print their location to help users find them.
1893
-
1894
1894
### ` --prof `
1895
1895
1896
1896
<!-- YAML
@@ -2166,6 +2166,17 @@ The following environment variables are set when running a script with `--run`:
2166
2166
* ` NODE_RUN_PACKAGE_JSON_PATH ` : The path to the ` package.json ` that is being
2167
2167
processed.
2168
2168
2169
+ ### ` --secure-heap-min=n `
2170
+
2171
+ <!-- YAML
2172
+ added: v15.6.0
2173
+ -->
2174
+
2175
+ When using ` --secure-heap ` , the ` --secure-heap-min ` flag specifies the
2176
+ minimum allocation from the secure heap. The minimum value is ` 2 ` .
2177
+ The maximum value is the lesser of ` --secure-heap ` or ` 2147483647 ` .
2178
+ The value given must be a power of two.
2179
+
2169
2180
### ` --secure-heap=n `
2170
2181
2171
2182
<!-- YAML
@@ -2191,17 +2202,6 @@ The secure heap is not available on Windows.
2191
2202
2192
2203
See [ ` CRYPTO_secure_malloc_init ` ] [ ] for more details.
2193
2204
2194
- ### ` --secure-heap-min=n `
2195
-
2196
- <!-- YAML
2197
- added: v15.6.0
2198
- -->
2199
-
2200
- When using ` --secure-heap ` , the ` --secure-heap-min ` flag specifies the
2201
- minimum allocation from the secure heap. The minimum value is ` 2 ` .
2202
- The maximum value is the lesser of ` --secure-heap ` or ` 2147483647 ` .
2203
- The value given must be a power of two.
2204
-
2205
2205
### ` --snapshot-blob=path `
2206
2206
2207
2207
<!-- YAML
@@ -2912,11 +2912,6 @@ and `NODE_DISABLE_COLORS` environment variables are ignored.
2912
2912
2913
2913
Any other value will result in colorized output being disabled.
2914
2914
2915
- ### ` NO_COLOR=<any> `
2916
-
2917
- [ ` NO_COLOR ` ] [ ] is an alias for ` NODE_DISABLE_COLORS ` . The value of the
2918
- environment variable is arbitrary.
2919
-
2920
2915
### ` NODE_COMPILE_CACHE=dir `
2921
2916
2922
2917
<!-- YAML
@@ -3323,6 +3318,11 @@ easier to instrument applications that call the `child_process.spawn()` family
3323
3318
of functions. ` NODE_V8_COVERAGE ` can be set to an empty string, to prevent
3324
3319
propagation.
3325
3320
3321
+ ### ` NO_COLOR=<any> `
3322
+
3323
+ [ ` NO_COLOR ` ] [ ] is an alias for ` NODE_DISABLE_COLORS ` . The value of the
3324
+ environment variable is arbitrary.
3325
+
3326
3326
#### Coverage output
3327
3327
3328
3328
Coverage is output as an array of [ ScriptCoverage] [ ] objects on the top-level
@@ -3507,19 +3507,9 @@ documented here:
3507
3507
3508
3508
### ` --harmony-shadow-realm `
3509
3509
3510
- ### ` --jitless `
3511
-
3512
3510
### ` --interpreted-frames-native-stack `
3513
3511
3514
- ### ` --prof `
3515
-
3516
- ### ` --perf-basic-prof `
3517
-
3518
- ### ` --perf-basic-prof-only-functions `
3519
-
3520
- ### ` --perf-prof `
3521
-
3522
- ### ` --perf-prof-unwinding-info `
3512
+ ### ` --jitless `
3523
3513
3524
3514
<!-- Anchor to make sure old links find a target -->
3525
3515
@@ -3571,6 +3561,16 @@ for MiB in 16 32 64 128; do
3571
3561
done
3572
3562
```
3573
3563
3564
+ ### ` --perf-basic-prof `
3565
+
3566
+ ### ` --perf-basic-prof-only-functions `
3567
+
3568
+ ### ` --perf-prof `
3569
+
3570
+ ### ` --perf-prof-unwinding-info `
3571
+
3572
+ ### ` --prof `
3573
+
3574
3574
### ` --security-revert `
3575
3575
3576
3576
### ` --stack-trace-limit=limit `
0 commit comments