Better NPM CLI search


Keywords
search, npm, npms, cli, modules
License
MIT
Install
npm install smpn@1.5.0

Documentation

smpn

Go make smpn great

I love searching for modules, but there's no great way to search for them from the CLI. The current search mechanism using npm is, quite honestly, pretty terrible. Although npms has a cli, I wanted something a bit more compact, but with the same insights and information. I decided to use their API, so I'm sure you can figure out where the name came from.

Features

  • Search using npms
    • See all of the same repo ratings
    • Use the same filters you probably don't know
  • Do a thing with the selected package
    • Open in your default browser
    • Install to the project you're in
    • Install and save to project dependencies
    • Install and save to project devDependencies

Install

Super simple stuff. Take your pick:

Standard global install:

# Install globally, the boring way
npm i -g smpn
# or if you're a cool kitten
yarn add global smpn

# Take a peek at the help docs
smpn --help

Or maybe you're hip and you don't install things anymore;

# Install temporarily and check out the help docs
npx smpn --help