@@ -553,6 +553,18 @@ Affects the default output directory of:
553
553
* [ ` --heap-prof-dir ` ] [ ]
554
554
* [ ` --redirect-warnings ` ] [ ]
555
555
556
+ ### ` --disable-proto=mode `
557
+
558
+ <!-- YAML
559
+ added:
560
+ - v13.12.0
561
+ - v12.17.0
562
+ -->
563
+
564
+ Disable the ` Object.prototype.__proto__ ` property. If ` mode ` is ` delete ` , the
565
+ property is removed entirely. If ` mode ` is ` throw ` , accesses to the
566
+ property throw an exception with the code ` ERR_PROTO_ACCESS ` .
567
+
556
568
### ` --disable-warning=code-or-type `
557
569
558
570
> Stability: 1.1 - Active development
@@ -647,18 +659,6 @@ users can at least run WebAssembly (with less optimal performance)
647
659
when the virtual memory address space available to their Node.js
648
660
process is lower than what the V8 WebAssembly memory cage needs.
649
661
650
- ### ` --disable-proto=mode `
651
-
652
- <!-- YAML
653
- added:
654
- - v13.12.0
655
- - v12.17.0
656
- -->
657
-
658
- Disable the ` Object.prototype.__proto__ ` property. If ` mode ` is ` delete ` , the
659
- property is removed entirely. If ` mode ` is ` throw ` , accesses to the
660
- property throw an exception with the code ` ERR_PROTO_ACCESS ` .
661
-
662
662
### ` --disallow-code-generation-from-strings `
663
663
664
664
<!-- YAML
@@ -669,25 +669,6 @@ Make built-in language features like `eval` and `new Function` that generate
669
669
code from strings throw an exception instead. This does not affect the Node.js
670
670
` node:vm ` module.
671
671
672
- ### ` --expose-gc `
673
-
674
- <!-- YAML
675
- added:
676
- - v22.3.0
677
- - v20.18.0
678
- -->
679
-
680
- > Stability: 1 - Experimental. This flag is inherited from V8 and is subject to
681
- > change upstream.
682
-
683
- This flag will expose the gc extension from V8.
684
-
685
- ``` js
686
- if (globalThis .gc ) {
687
- globalThis .gc ();
688
- }
689
- ```
690
-
691
672
### ` --dns-result-order=order `
692
673
693
674
<!-- YAML
@@ -794,6 +775,15 @@ node --entry-url --experimental-strip-types 'file.ts?query#hash'
794
775
node --entry-url ' data:text/javascript,console.log("Hello")'
795
776
```
796
777
778
+ ### ` --env-file-if-exists=config `
779
+
780
+ <!-- YAML
781
+ added: v22.9.0
782
+ -->
783
+
784
+ Behavior is the same as [ ` --env-file ` ] [ ] , but an error is not thrown if the file
785
+ does not exist.
786
+
797
787
### ` --env-file=config `
798
788
799
789
> Stability: 1.1 - Active development
@@ -861,15 +851,6 @@ export USERNAME="nodejs" # will result in `nodejs` as the value.
861
851
If you want to load environment variables from a file that may not exist, you
862
852
can use the [ ` --env-file-if-exists ` ] [ ] flag instead.
863
853
864
- ### ` --env-file-if-exists=config `
865
-
866
- <!-- YAML
867
- added: v22.9.0
868
- -->
869
-
870
- Behavior is the same as [ ` --env-file ` ] [ ] , but an error is not thrown if the file
871
- does not exist.
872
-
873
854
### ` -e ` , ` --eval "script" `
874
855
875
856
<!-- YAML
@@ -893,17 +874,6 @@ and `"` are usable.
893
874
It is possible to run code containing inline types by passing
894
875
[ ` --experimental-strip-types ` ] [ ] .
895
876
896
- ### ` --experimental-transform-types `
897
-
898
- <!-- YAML
899
- added: v22.7.0
900
- -->
901
-
902
- > Stability: 1.1 - Active development
903
-
904
- Enables the transformation of TypeScript-only syntax into JavaScript code.
905
- Implies ` --experimental-strip-types ` and ` --enable-source-maps ` .
906
-
907
877
### ` --experimental-eventsource `
908
878
909
879
<!-- YAML
@@ -983,6 +953,18 @@ following permissions are restricted:
983
953
* WASI - manageable through [ ` --allow-wasi ` ] [ ] flag
984
954
* Addons - manageable through [ ` --allow-addons ` ] [ ] flag
985
955
956
+ ### ` --experimental-print-required-tla `
957
+
958
+ <!-- YAML
959
+ added:
960
+ - v22.0.0
961
+ - v20.17.0
962
+ -->
963
+
964
+ If the ES module being ` require() ` 'd contains top-level ` await ` , this flag
965
+ allows Node.js to evaluate the module, try to locate the
966
+ top-level awaits, and print their location to help users find them.
967
+
986
968
### ` --experimental-require-module `
987
969
988
970
<!-- YAML
@@ -1081,6 +1063,17 @@ added:
1081
1063
1082
1064
Enable module mocking in the test runner.
1083
1065
1066
+ ### ` --experimental-transform-types `
1067
+
1068
+ <!-- YAML
1069
+ added: v22.7.0
1070
+ -->
1071
+
1072
+ > Stability: 1.1 - Active development
1073
+
1074
+ Enables the transformation of TypeScript-only syntax into JavaScript code.
1075
+ Implies ` --experimental-strip-types ` and ` --enable-source-maps ` .
1076
+
1084
1077
### ` --experimental-vm-modules `
1085
1078
1086
1079
<!-- YAML
@@ -1126,6 +1119,25 @@ added: v22.4.0
1126
1119
1127
1120
Enable experimental [ ` Web Storage ` ] [ ] support.
1128
1121
1122
+ ### ` --expose-gc `
1123
+
1124
+ <!-- YAML
1125
+ added:
1126
+ - v22.3.0
1127
+ - v20.18.0
1128
+ -->
1129
+
1130
+ > Stability: 1 - Experimental. This flag is inherited from V8 and is subject to
1131
+ > change upstream.
1132
+
1133
+ This flag will expose the gc extension from V8.
1134
+
1135
+ ``` js
1136
+ if (globalThis .gc ) {
1137
+ globalThis .gc ();
1138
+ }
1139
+ ```
1140
+
1129
1141
### ` --force-context-aware `
1130
1142
1131
1143
<!-- YAML
@@ -1404,20 +1416,6 @@ When enabled, the parser will accept the following:
1404
1416
All the above will expose your application to request smuggling
1405
1417
or poisoning attack. Avoid using this option.
1406
1418
1407
- ### ` --inspect[=[host:]port] `
1408
-
1409
- <!-- YAML
1410
- added: v6.3.0
1411
- -->
1412
-
1413
- Activate inspector on ` host:port ` . Default is ` 127.0.0.1:9229 ` . If port ` 0 ` is
1414
- specified, a random available port will be used.
1415
-
1416
- V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
1417
- and profile Node.js instances. The tools attach to Node.js instances via a
1418
- tcp port and communicate using the [ Chrome DevTools Protocol] [ ] .
1419
- See [ V8 Inspector integration for Node.js] [ ] for further explanation on Node.js debugger.
1420
-
1421
1419
<!-- Anchor to make sure old links find a target -->
1422
1420
1423
1421
<a id =" inspector_security " ></a >
@@ -1486,6 +1484,20 @@ a random available port will be used.
1486
1484
1487
1485
See [ V8 Inspector integration for Node.js] [ ] for further explanation on Node.js debugger.
1488
1486
1487
+ ### ` --inspect[=[host:]port] `
1488
+
1489
+ <!-- YAML
1490
+ added: v6.3.0
1491
+ -->
1492
+
1493
+ Activate inspector on ` host:port ` . Default is ` 127.0.0.1:9229 ` . If port ` 0 ` is
1494
+ specified, a random available port will be used.
1495
+
1496
+ V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
1497
+ and profile Node.js instances. The tools attach to Node.js instances via a
1498
+ tcp port and communicate using the [ Chrome DevTools Protocol] [ ] .
1499
+ See [ V8 Inspector integration for Node.js] [ ] for further explanation on Node.js debugger.
1500
+
1489
1501
### ` -i ` , ` --interactive `
1490
1502
1491
1503
<!-- YAML
@@ -1848,18 +1860,6 @@ changes:
1848
1860
1849
1861
Identical to ` -e ` but prints the result.
1850
1862
1851
- ### ` --experimental-print-required-tla `
1852
-
1853
- <!-- YAML
1854
- added:
1855
- - v22.0.0
1856
- - v20.17.0
1857
- -->
1858
-
1859
- If the ES module being ` require() ` 'd contains top-level ` await ` , this flag
1860
- allows Node.js to evaluate the module, try to locate the
1861
- top-level awaits, and print their location to help users find them.
1862
-
1863
1863
### ` --prof `
1864
1864
1865
1865
<!-- YAML
@@ -2135,6 +2135,17 @@ The following environment variables are set when running a script with `--run`:
2135
2135
* ` NODE_RUN_PACKAGE_JSON_PATH ` : The path to the ` package.json ` that is being
2136
2136
processed.
2137
2137
2138
+ ### ` --secure-heap-min=n `
2139
+
2140
+ <!-- YAML
2141
+ added: v15.6.0
2142
+ -->
2143
+
2144
+ When using ` --secure-heap ` , the ` --secure-heap-min ` flag specifies the
2145
+ minimum allocation from the secure heap. The minimum value is ` 2 ` .
2146
+ The maximum value is the lesser of ` --secure-heap ` or ` 2147483647 ` .
2147
+ The value given must be a power of two.
2148
+
2138
2149
### ` --secure-heap=n `
2139
2150
2140
2151
<!-- YAML
@@ -2160,17 +2171,6 @@ The secure heap is not available on Windows.
2160
2171
2161
2172
See [ ` CRYPTO_secure_malloc_init ` ] [ ] for more details.
2162
2173
2163
- ### ` --secure-heap-min=n `
2164
-
2165
- <!-- YAML
2166
- added: v15.6.0
2167
- -->
2168
-
2169
- When using ` --secure-heap ` , the ` --secure-heap-min ` flag specifies the
2170
- minimum allocation from the secure heap. The minimum value is ` 2 ` .
2171
- The maximum value is the lesser of ` --secure-heap ` or ` 2147483647 ` .
2172
- The value given must be a power of two.
2173
-
2174
2174
### ` --snapshot-blob=path `
2175
2175
2176
2176
<!-- YAML
@@ -2881,11 +2881,6 @@ and `NODE_DISABLE_COLORS` environment variables are ignored.
2881
2881
2882
2882
Any other value will result in colorized output being disabled.
2883
2883
2884
- ### ` NO_COLOR=<any> `
2885
-
2886
- [ ` NO_COLOR ` ] [ ] is an alias for ` NODE_DISABLE_COLORS ` . The value of the
2887
- environment variable is arbitrary.
2888
-
2889
2884
### ` NODE_COMPILE_CACHE=dir `
2890
2885
2891
2886
<!-- YAML
@@ -3291,6 +3286,11 @@ easier to instrument applications that call the `child_process.spawn()` family
3291
3286
of functions. ` NODE_V8_COVERAGE ` can be set to an empty string, to prevent
3292
3287
propagation.
3293
3288
3289
+ ### ` NO_COLOR=<any> `
3290
+
3291
+ [ ` NO_COLOR ` ] [ ] is an alias for ` NODE_DISABLE_COLORS ` . The value of the
3292
+ environment variable is arbitrary.
3293
+
3294
3294
#### Coverage output
3295
3295
3296
3296
Coverage is output as an array of [ ScriptCoverage] [ ] objects on the top-level
@@ -3475,19 +3475,9 @@ documented here:
3475
3475
3476
3476
### ` --harmony-shadow-realm `
3477
3477
3478
- ### ` --jitless `
3479
-
3480
3478
### ` --interpreted-frames-native-stack `
3481
3479
3482
- ### ` --prof `
3483
-
3484
- ### ` --perf-basic-prof `
3485
-
3486
- ### ` --perf-basic-prof-only-functions `
3487
-
3488
- ### ` --perf-prof `
3489
-
3490
- ### ` --perf-prof-unwinding-info `
3480
+ ### ` --jitless `
3491
3481
3492
3482
<!-- Anchor to make sure old links find a target -->
3493
3483
@@ -3539,6 +3529,16 @@ for MiB in 16 32 64 128; do
3539
3529
done
3540
3530
```
3541
3531
3532
+ ### ` --perf-basic-prof `
3533
+
3534
+ ### ` --perf-basic-prof-only-functions `
3535
+
3536
+ ### ` --perf-prof `
3537
+
3538
+ ### ` --perf-prof-unwinding-info `
3539
+
3540
+ ### ` --prof `
3541
+
3542
3542
### ` --security-revert `
3543
3543
3544
3544
### ` --stack-trace-limit=limit `
0 commit comments