nodeopts

package
v0.17.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

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

func WithHeapLimit(inherited string, mib int) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL