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_modulespath viabun pm bin -g. - get_
npm_ global_ prefix - Get the npm global
node_modulespath vianpm root -g. - get_
pnpm_ global_ prefix - Get the pnpm global
node_modulespath viapnpm root -g. - get_
yarn_ global_ prefix - Get the yarn global
node_modulespath viayarn 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.jsonfile, returning(name, version)if valid.