README.md
June 24, 2026 · View on GitHub
███████╗███████╗██╗ ██╗
╚══███╔╝██╔════╝██║ ██║
███╔╝ ███████╗███████║
███╔╝ ╚════██║██╔══██║
███████╗███████║██║ ██║
╚══════╝╚══════╝╚═╝ ╚═╝
[ n p m ]
[BETTER NPM COMPLETION FOR ZSH // CACHE-AWARE INSTALL + DEP-AWARE UNINSTALL]
"
npm install <TAB>recommends from cache.npm uninstall <TAB>recommends from package.json."
Better completion for
npm
- Makes
npm installrecommendations from npm cache - Makes
npm uninstallrecommendations fromdependencies/devDependencies - Shows detailed information on script contents for
npm run - Falls back to default npm completions if we don't have anything better
strykelang · zshrs · MenkeTechnologiesMeta · zsh-cargo-completion · zsh-more-completions · zpwr
Read the Docs · Engineering Report
Table of Contents
[0x00] Installation
[0x01] Install for Zinit
~/.zshrc
source "$HOME/.zinit/bin/zinit.zsh"
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-better-npm-completion
Using Antigen
Bundle zsh-better-npm-completion in your .zshrc
antigen bundle MenkeTechnologies/zsh-better-npm-completion
Using zplug
Load zsh-better-npm-completion as a plugin in your .zshrc
zplug "MenkeTechnologies/zsh-better-npm-completion", defer:2
Using zgen
Include the load command in your .zshrc
zgen load MenkeTechnologies/zsh-better-npm-completion
As an Oh My ZSH! custom plugin
Clone zsh-better-npm-completion into your custom plugins repo
git clone https://github.com/MenkeTechnologies/zsh-better-npm-completion ~/.oh-my-zsh/custom/plugins/zsh-better-npm-completion
Then load as a plugin in your .zshrc
plugins+=(zsh-better-npm-completion)
Manually
Clone this repository somewhere (~/.zsh-better-npm-completion for example)
git clone https://github.com/MenkeTechnologies/zsh-better-npm-completion.git ~/.zsh-better-npm-completion
Then source it in your .zshrc
source ~/.zsh-better-npm-completion/zsh-better-npm-completion.plugin.zsh
[0x02] Related
zsh-nvm- Zsh plugin for installing, updating and loadingnvmgifgen- Simple high quality GIF encoding
[0xFF] License
MIT © Luke Childs