Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.03 KB

npm-audit-example

Pipeline status

Note: This is a playground project project and may not use up-to-date depenencies!

Example of using npm audit

Precondition

To run npm audit the defined modules have to be installed calling

npm install

For executing npm audit only it should be sufficient to create only the package-lock.json calling

npm install --package-lock-only

Module Check

To execute a module scan you can call the following command from command line:

npm audit

This will show the results in the command line.

Dependency Tree

To create a dependency tree the following command can be used:

npm ls

This will show a dependency tree in the command line.

Update Check

If you want to check the used modules for updates you can achieve this using the command

npm outdated

This will show a list of updates available for the used modules.

Useful links