Auditdeps
Audit dependencies in Yarn 2 (berry) projects
Install / Use
/learn @MrEfrem/AuditdepsREADME
Audit dependencies in Yarn 2 (berry) projects
Using
Yarn 2 (berry)
yarn dlx @efrem/auditdeps [--level=(low|moderate|high|critical)] [--production] [--ignore-cwe=cwe-126] [--ignore-cwe=cwe-] [--ignore-cwe=cwe-79]
Npm
npx @efrem/auditdeps [--level=(low|moderate|high|critical)] [--production] [--ignore-cwe=cwe-126] [--ignore-cwe=cwe-] [--ignore-cwe=cwe-79]
-
--levelis optional and by default all vulneravilities shown. But if it's set then shown only vulnerabilities of selected level or higher. -
--productionis optional and by default all packages are verifying. When it's set only packages fromdependenciessection are verified. -
--ignore-cweis optional and by default any found vulnerability leads the command exits with code 1. Buf if it's set and if all found vulnerabilities are ignored then the command exits with code 0.
Development
VSCode
-
Setup (https://yarnpkg.com/advanced/editor-sdks#vscode)
- Open this project directly otherwise you should add to VSCode Workspace
settings.json:
"typescript.tsdk": "<current directory name>/.yarn/sdks/typescript/lib"- Press ctrl+shift+p in a TypeScript file
- Choose "Select TypeScript Version"
- Pick "Use Workspace Version"
- Open this project directly otherwise you should add to VSCode Workspace
