LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-sbom

Generate a Software Bill of Materials for the project

TLDR

Generate SBOM in default format
$ npm sbom
copy
Generate in SPDX format
$ npm sbom --sbom-format spdx
copy
Generate in CycloneDX format
$ npm sbom --sbom-format cyclonedx
copy
Output to file
$ npm sbom --sbom-format cyclonedx > [sbom.json]
copy
Omit dev dependencies
$ npm sbom --omit dev
copy
Use only package-lock.json (ignore node_modules)
$ npm sbom --package-lock-only
copy

SYNOPSIS

npm sbom [options]

DESCRIPTION

npm sbom generates a Software Bill of Materials (SBOM) listing all dependencies of the current project. It supports the SPDX and CycloneDX formats, which are industry standards for documenting software supply chain components. The output includes package names, versions, licenses, and dependency relationships.

PARAMETERS

--sbom-format FORMAT

Output format: spdx or cyclonedx (required).
--sbom-type TYPE
Package type: library (default), application, or framework.
--omit TYPE
Omit dependency type (dev, optional, peer).
--package-lock-only
Use package-lock.json only, ignoring node_modules.
--workspace name
Run in the context of a specific workspace.
--workspaces
Run for all configured workspaces.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Requires npm 9.5.0 or later. A package-lock.json or node_modules must exist. The --sbom-format option is required for usable output.

SEE ALSO

npm(1), npm-audit(1), npm-ls(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid