Documentation
¶
Overview ¶
Package nodeopts rewrites a NODE_OPTIONS value so it sets the JavaScript heap limit, lexing it the way Node does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHeapLimit ¶
WithHeapLimit returns inherited with every heap-limit flag removed and `--max-old-space-size=<mib>` appended. mib 0 returns inherited unchanged and unparsed. Every other option keeps its exact bytes. A value Node itself would refuse is an error, never repaired.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.