NPM Orch - VS Code Extension (minimal scaffold)
This is a small VS Code extension scaffold that adds a new Activity Bar view called "NPM Orch". It will:
- Show a TreeView of the packages declared in workspace
package.json (dependencies + devDependencies).
- For each package it displays the declared version and fetches the latest version from the npm registry.
- Commands: Refresh, Search npm (opens npmjs.com search), and "How to search pip in PyCharm" (shows a guide).
How to run
- Open this folder in VS Code.
- Press F5 to launch the Extension Development Host.
- The new Activity Bar icon ("NPM Orch") appears. Click to open the view.
- Use the command palette (Ctrl+Shift+P) and run:
NPM Orch: Refresh, NPM Orch: Search npm, or NPM Orch: How to search pip in PyCharm.
Notes
- This is a minimal JavaScript-based extension to avoid needing a TS build step.
- The extension reads the first workspace folder's
package.json at the root. If you use a monorepo, open the package folder as the workspace root.
Next improvements you might want:
- Add a Webview with package details, changelog, and quick-install buttons.
- Support scanning multiple workspace folders and monorepo workspaces.
- Add caching and error handling for npm requests.
License: MIT
| |