Files
cheatsheet-tldr/tldr/npm-sbom
2025-12-20 00:20:53 +00:00

22 lines
485 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm sbom
> Generate a Software Bill of Materials (SBOM) for your Node.js project.
> More information: <https://docs.npmjs.com/cli/npm-sbom/>.
- Output a list of all dependencies in your project:
`npm sbom`
- Exclude both `dev` and `optional` dependencies:
`npm sbom --omit dev --omit optional`
- Generate an SBOM based only on the `package-lock.json`:
`npm sbom --package-lock-only`