yarn dlx @efrem/auditdeps [--level=(low|moderate|high|critical)] [--production] [--ignore-cwe=cwe-126] [--ignore-cwe=cwe-] [--ignore-cwe=cwe-79]
npx @efrem/auditdeps [--level=(low|moderate|high|critical)] [--production] [--ignore-cwe=cwe-126] [--ignore-cwe=cwe-] [--ignore-cwe=cwe-79]
-
--level
is optional and by default all vulneravilities shown. But if it's set then shown only vulnerabilities of selected level or higher. -
--production
is optional and by default all packages are verifying. When it's set only packages fromdependencies
section are verified. -
--ignore-cwe
is 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.
-
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