npm-sbom: add page (#18517)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Julian Ste
2025-10-08 03:44:57 +02:00
committed by GitHub
parent 83b5953ebf
commit f0f76c4eac
+16
View File
@@ -0,0 +1,16 @@
# 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`