Pkg-Uninstaller is a lightweight and efficient VS Code extension that allows you to easily uninstall packages directly from your package.json file using the context menu. Simply select the package you want to remove, and uninstall it with a single click. Perfect for developers who want to quickly manage their dependencies without leaving the editor.
Features
Uninstall Multiple Packages: Select and uninstall multiple packages at once from your package.json.
Quick and Easy: No need to run terminal commands. Just right-click on the package name in your package.json and uninstall it directly.
Support for Multiple Package Managers: Currently supports npm, yarn, and pnpm, making it versatile for any project setup.
Context Menu Integration: Seamlessly integrates into the editor's context menu for easy access while working in your package.json.
Installation
Open VS Code.
Go to the Extensions view (Ctrl+Shift+X).
Search for Pkg-Uninstaller and click Install.
Alternatively, you can install it via the Marketplace by searching for Pkg-Uninstaller.
Usage
Open your package.json file in VS Code.
Right-click on the package name (or dependencies) you want to uninstall in the editor.
Select Uninstall Packages from the context menu.
If multiple packages are selected, they will all be uninstalled at once.
Supported Package Managers
npm
yarn
pnpm
The extension automatically detects which package manager you're using based on your project's package.json.
Commands
Uninstall Packages: Right-click any installed package in the package.json and choose this option to uninstall it.
Development
To contribute to Pkg-Uninstaller, clone this repository and follow these steps: