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?
“A module that allows you to use feature flags (also known as feature flipping) in Node. js. You can enable/disable features programmatically or via an external configuration file. Any changes to the configuration file will update the module without requiring a restart.”
Modules are of three types: Core Modules. local Modules. Third-party Modules.
Run node --v8-options
. That displays the various flags you can set to change the behavior of 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
If you apply the --help
switch to node from the shell, you'll get a list of available flags;
node --help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With