I'm trying to find a list of all flags that Node.js accepts, specially those for ES6-Harmony features, but I can't find any. Is there anything like this?
我正在尝试找到Node.js接受的所有标志的列表,特别是那些用于ES6-Harmony功能的标志,但我找不到任何标志。有这样的吗?
2 个解决方案
#1
20
Run node --v8-options
. That displays the various flags you can set to change the behavior of V8
运行节点--v8-options。这会显示您可以设置的各种标志,以更改V8的行为
E.g. The flags for the harmony features show up in there:
例如。和声特征的标志出现在那里:
--harmony_typeof (enable harmony semantics for typeof)
type: bool default: false
--harmony_proxies (enable harmony proxies)
type: bool default: false
--harmony_weakmaps (enable harmony weak maps)
type: bool default: false
--harmony_block_scoping (enable harmony block scoping)
type: bool default: false
#2
6
If you apply the --help
switch to node from the shell, you'll get a list of available flags;
如果从shell中将--help开关应用于节点,您将获得可用标志的列表;
node --help
#1
20
Run node --v8-options
. That displays the various flags you can set to change the behavior of V8
运行节点--v8-options。这会显示您可以设置的各种标志,以更改V8的行为
E.g. The flags for the harmony features show up in there:
例如。和声特征的标志出现在那里:
--harmony_typeof (enable harmony semantics for typeof)
type: bool default: false
--harmony_proxies (enable harmony proxies)
type: bool default: false
--harmony_weakmaps (enable harmony weak maps)
type: bool default: false
--harmony_block_scoping (enable harmony block scoping)
type: bool default: false
#2
6
If you apply the --help
switch to node from the shell, you'll get a list of available flags;
如果从shell中将--help开关应用于节点,您将获得可用标志的列表;
node --help