mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 22:49:19 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/npm-sbom
Normal file
21
tldr/npm-sbom
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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`
|
||||
Reference in New Issue
Block a user