Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pages/common/npm-sbom.md
Original file line number Diff line number Diff line change
@@ -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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`npm sbom --omit=dev --omit=optional`
`npm sbom --omit dev --omit optional`

Does this work without the =?


- Generate an SBOM based only on the `package-lock.json`:

`npm sbom --package-lock-only`