Working with NPM modules shortcuts: center-code (s), npm-quick-run (nr) and Man for NPM (manpm)

by bahmutov
macOS ◆ xterm-256color ◆ bash 3614 views

I am showing several of my CLI tools that speed up working with NPM modules.

  • show centered, syntax highlighted JS or JSON files using center-code
  • run any npm script very quickly using the first matching prefix npm-run-quick. I am using nr bin name and show first ambiguous case (two script names match “s” prefix)
  • fetching any package README, searching for a section with the given text and showing it in the terminal using Markdown highlighting using manpm that is my Man for NPM

All tools are available now, any suggestions are welcome.