Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 1.92 KB

README.org

File metadata and controls

72 lines (53 loc) · 1.92 KB

About

Command dispatcher for npm package manager. Supports different npm versions, as arguments are dynamically parsed from help output.

./demo.png

Table of Contents

Requirenments

Programs

ProgramVersionDescription
npm>=6Node Package Manager
nvm (optional)>=0.39.3Node Version Manager
Emacs>=28.1Editor

Emacs Packages

PackageVersionDescription
transient>=0.4.0Builtin library (from Emacs 28.1).
ivy (optional)>=0.13.4For async completions for npm packages

Installation

Manual

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))))

Usage

Just run:

M-x npmjs RET