syam-uninstall
v0.0.2
Published
Smart uninstall CLI that auto-detects your package manager (npm, pnpm, yarn, bun, deno) from lock files.
Maintainers
Readme
syam-uninstall
Smart CLI uninstaller that auto-detects your package manager from lock files and delegates to the right remove command.
Installation
npm install -g syam-uninstall
# or
pnpm add -g syam-uninstall
# or
bun add -g syam-uninstallUsage
Uninstall a package
Removes the package using the detected package manager:
syam uninstall express
syam un express
syam remove express
syam rm expressUninstall multiple packages
syam uninstall express lodash axios
syam remove express lodash axiosUninstall globally
syam uninstall -g nodemon
syam remove -g nodemonPackage Manager Auto-Detection
syam looks for lock files in the current directory and maps them to the corresponding package manager remove commands:
| Lock File | Package Manager | Underlying Command |
|---|---|---|
| pnpm-lock.yaml | pnpm | pnpm remove |
| yarn.lock | yarn | yarn remove |
| bun.lock / bun.lockb | bun | bun remove |
| deno.lock | deno | deno remove (local) / deno uninstall (global) |
| package-lock.json | npm | npm uninstall |
| (no lock file found) | npm | npm uninstall |
Detection is based on priority order — pnpm-lock.yaml is checked before package-lock.json.
Examples
$ syam uninstall express
syam detected pnpm via pnpm-lock.yaml
▶ pnpm remove express
...pnpm output...
✔ Done!$ syam uninstall -g nodemon
syam no lock file found, using npm (default)
▶ npm uninstall -g nodemon
...npm output...
✔ Done!Options
| Flag | Description |
|---|---|
| -g, --global | Uninstall package(s) globally |
| -h, --help | Show help |
| -v, --version | Show version |
Related
- syam-install — Smart package installer
- syam-init — Interactive project initializer
License
MIT © udenbaguse
