node

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectVersion

func DetectVersion(dir string) (string, error)

DetectVersion detects the Node.js version for the given directory. It checks, in order:

  1. .lerd.yaml node_version field (explicit lerd override)
  2. .nvmrc
  3. .node-version
  4. package.json engines.node
  5. global config default

func ListInstalled added in v1.23.0

func ListInstalled() []string

ListInstalled returns every Node major version installed under fnm, in the order fnm reports them. Empty when fnm isn't on disk or the user has no versions installed. Centralises the parsing previously duplicated in internal/ui/server.go and internal/mcp/server.go so every surface (web UI, MCP, TUI) sees the same list with the same dedupe rules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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