-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflags.js
46 lines (45 loc) · 1.01 KB
/
flags.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
export const NODE_FLAGS = new RegExp(
[
"abort-on-uncaught-exception",
"enable-fips",
"experimental-modules",
"experimental-vm-modules",
"force-fips",
"icu-data-dir=.+",
"inspect-brk(=.+)?",
"inspect-port=.+",
"inspect(=.+)?",
"napi-modules",
"no-deprecation",
"no-force-async-hooks-checks",
"no-warnings",
"openssl-config=.+",
"pending-deprecation",
"preserve-symlinks",
"prof-process",
"redirect-warnings=.+",
"throw-deprecation",
"tls-cipher-list=.+",
"trace-deprecation",
"trace-event-categories",
"trace-event-file-pattern",
"trace-events-enabled",
"trace-sync-io",
"trace-warnings",
"track-heap-objects",
"use-bundled-ca",
"use-openssl-ca",
"v8-options",
"v8-pool-size=.+",
"zero-fill-buffers",
"harmony.*",
["r .+", "require .+"]
]
.map(flag => {
if (Array.isArray(flag)) {
return `-${flag[0]}|--${flag[1]}`;
}
return `--${flag}`;
})
.join("|")
);