Command dispatcher for npm package manager. Supports different npm versions, as arguments are dynamically parsed from help output.
Program | Version | Description |
---|---|---|
npm | >=6 | Node Package Manager |
nvm (optional) | >=0.39.3 | Node Version Manager |
Emacs | >=28.1 | Editor |
Package | Version | Description |
---|---|---|
transient | >=0.4.0 | Builtin library (from Emacs 28.1). |
ivy (optional) | >=0.13.4 | For async completions for npm packages |
Download the source code and put it wherever you like, e.g. into ~/.emacs.d/npmjs/
git clone https://github.com/KarimAziev/npmjs.git ~/.emacs.d/npmjs/
Add the downloaded directory to the load path:
(add-to-list 'load-path "~/.emacs.d/npmjs/")
(require 'npmjs)
(use-package npmjs
:straight (npmjs
:repo "KarimAziev/npmjs"
:type git
:host github)
:commands (npmjs)
:bind ((:map npmjs-multi-completion-map
("C-<return>" . npmjs-throw-done)
("C-M-j" . npmjs-throw-done))))
Just run:
M-x npmjs RET