Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>NPM ShieldNew to Visual Studio Code? Get it now.
NPM Shield

NPM Shield

Yasseen Awadallah

|
1 install
| (0) | Free
Instantly scan your package.json for vulnerabilities, outdated packages, and security issues — right inside VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🛡️ NPM Shield

Install in VS Code

Instantly scan your npm packages for vulnerabilities — right inside VS Code.

NPM Shield runs npm audit automatically and shows you exactly which packages have security issues, how severe they are, and how to fix them — without ever leaving your editor.


Features

🔍 Auto-scan on save

Every time you save package.json, NPM Shield automatically scans for vulnerabilities. No manual steps needed.

📊 Security Dashboard

A full breakdown of every vulnerability found — severity, CVSS score, affected version range, and a direct link to the security advisory.

🔴 Inline warnings

Red and yellow squiggles appear directly on vulnerable package names in your package.json — hover to see the full details.

🔧 One-click fix

Click "Run npm audit fix" in the dashboard to automatically patch all fixable vulnerabilities.

📈 Status bar

Your current vulnerability count is always visible at the bottom of VS Code — green for clean, red for critical.


Usage

  1. Open any project with a package.json
  2. NPM Shield scans automatically on startup
  3. Check the status bar at the bottom for your vulnerability count
  4. Open the dashboard: Ctrl+Shift+P → NPM Shield: Open Security Dashboard
  5. Run a manual scan: Ctrl+Shift+P → NPM Shield: Scan for Vulnerabilities

Commands

Command Description
NPM Shield: Scan for Vulnerabilities Run a full npm audit scan
NPM Shield: Open Security Dashboard Open the vulnerability dashboard
NPM Shield: Auto-fix All Vulnerabilities Run npm audit fix
NPM Shield: Toggle Scan on Save Enable/disable auto-scan on save

Settings

Setting Default Description
npmShield.scanOnSave true Auto-scan when package.json is saved
npmShield.showInlineWarnings true Show squiggles in package.json
npmShield.severityThreshold moderate Minimum severity to report

Requirements

  • Node.js and npm installed
  • A project with package.json and node_modules

License

MIT · GitHub

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft