Skip to main content

Module platform

Module platform 

Source
Expand description

Cross-platform helpers for binary resolution and terminal capability detection.

resolve_npm_cli exists because npm-installed CLIs on Windows ship as .cmd or .ps1 shims rather than .exe, and std::process::Command::new("name") does not always pick them up depending on how PATHEXT is configured.

unicode_support_enabled centralizes the heuristic used by the interactive UI to decide between Unicode box-drawing and ASCII fallback.

Functions§

resolve_npm_cli
Resolve a Node/npm-style CLI name to an executable path.
unicode_support_enabled
Decide whether the terminal supports Unicode box-drawing characters.