是否有Node.js的标志列表?

jua*_*azo 11 node.js ecmascript-harmony

我正在尝试找到Node.js接受的所有标志的列表,特别是那些用于ES6-Harmony功能的标志,但我找不到任何标志.有这样的事吗?

jim*_*imr 23

node --v8-options.这会显示您可以设置的各种标志,以更改V8的行为

例如,和声特征的标志出现在那里:

 --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
Run Code Online (Sandbox Code Playgroud)


小智 7

如果--help从shell 应用交换机到节点,您将获得可用标志的列表;

node --help
Run Code Online (Sandbox Code Playgroud)