Skip to main content

Module npm_crawler

Module npm_crawler 

Source

Structs§

NpmCrawler
NPM ecosystem crawler for discovering packages in node_modules.

Functions§

build_npm_purl
Build a PURL string for an npm package.
get_bun_global_prefix
Get the bun global node_modules path via bun pm bin -g.
get_npm_global_prefix
Get the npm global node_modules path via 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.
parse_package_name
Parse a full npm package name into optional namespace and bare name.
read_package_json
Read and parse a package.json file, returning (name, version) if valid.