Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectVersion ¶
DetectVersion detects the Node.js version for the given directory. It checks, in order:
- .lerd.yaml node_version field (explicit lerd override)
- .nvmrc
- .node-version
- package.json engines.node
- 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.
Click to show internal directories.
Click to hide internal directories.