Skip to content

Commit f0f76c4

Browse files
julian-stManagor
andauthored
npm-sbom: add page (#18517)
Co-authored-by: Managor <[email protected]>
1 parent 83b5953 commit f0f76c4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pages/common/npm-sbom.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# npm sbom
2+
3+
> Generate a Software Bill of Materials (SBOM) for your Node.js project.
4+
> More information: <https://docs.npmjs.com/cli/npm-sbom>.
5+
6+
- Output a list of all dependencies in your project:
7+
8+
`npm sbom`
9+
10+
- Exclude both `dev` and `optional` dependencies:
11+
12+
`npm sbom --omit dev --omit optional`
13+
14+
- Generate an SBOM based only on the `package-lock.json`:
15+
16+
`npm sbom --package-lock-only`

0 commit comments

Comments
 (0)