Skip to main content

aube_user_agent

Function aube_user_agent 

Source
pub fn aube_user_agent() -> String
Expand description

User agent string exported to lifecycle scripts as npm_config_user_agent. Mirrors pnpm’s format (<name>/<version> <os> <arch>) so dep build scripts that sniff the env var to detect the running PM (e.g. husky, unrs-resolver) recognize aube without falling back to npm-mode. OS/arch use Node’s process.platform / process.arch vocabulary (darwin/linux/win32, x64/arm64), not Rust’s native std::env::consts::{OS,ARCH} values, so tools that parse the full UA string identify the platform the same way npm/yarn/pnpm do.