Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>NPM Script RunnerNew to Visual Studio Code? Get it now.
NPM Script Runner

NPM Script Runner

Devlizer

| (0) | Free
Adds a clickable icon to run npm scripts from package.json
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NPM Script Runner

Adds a clickable "▶ Run" button above each script in package.json to run the corresponding npm run command in the correct directory.

Features

  • Displays CodeLens buttons for each script in package.json.
  • Runs scripts in the directory of the package.json file.
  • Supports multiple package.json files in different workspace folders.

Usage

  1. Open a package.json file.
  2. Click the "▶ Run [scriptName]" button above any script to execute it in the terminal.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft