Skip to main content

command_is_package_runner

Function command_is_package_runner 

Source
pub fn command_is_package_runner(command: &str) -> bool
Expand description

Whether command is a package runner that fetches + executes code from a registry (npx, uvx, npm, …) and therefore needs network + a writable package cache to even start. Pure; basename-aware (/usr/bin/npx counts).