@zakodium/sbom-tools
v1.0.1
Published
Tools to analyse CycloneDX SBOM files
Readme
@zakodium/sbom-tools
Tools to analyse CycloneDX SBOM files.
Installation
npm install @zakodium/sbom-toolsUsage
Generate SBOM file
The tools expect a SBOM file in CycloneDX JSON format, version 1.6.
npm
See https://github.com/CycloneDX/cyclonedx-node-npm.
A compatible SBOM can be generated with:
npx --package @cyclonedx/cyclonedx-npm cyclonedx-npm --omit=dev --spec-version=1.6 --gather-license-texts --output-reproducible --output-file=sbom.jsonYarn
See https://github.com/CycloneDX/cyclonedx-node-yarn
A compatible SBOM can be generated with:
yarn dlx -q @cyclonedx/yarn-plugin-cyclonedx --production --spec-version=1.6 --gather-license-texts --output-reproducible --output-file=sbom.json