Skip to main content

Module global_packages

Module global_packages 

Source

Functionsยง

get_bun_global_prefix
Get the bun global node_modules path via bun pm bin -g.
get_global_node_modules_paths
Get all global node_modules paths for package lookup.
get_global_prefix
Get the global node_modules path, with support for a custom override.
get_npm_global_prefix
Get the npm global node_modules path using npm root -g.
get_pnpm_global_prefix
Get the pnpm global node_modules path via pnpm root -g.
get_yarn_global_prefix
Get the yarn global node_modules path via yarn global dir.
is_global_path
Check if a path is within a global node_modules directory.