0uqriw
Last Updated: February 25, 2016
·
352
· metaraine

Quickly go to the homepage of an npm module

Want a quick way to navigate to to go to the homepage of a known npm module?

Add this to your ~/.bash_profile

# npm browse (named after hub's "git browse" command)
npmb() { 
  npm view $1 homepage | xargs open
}

Usage

npmb express    # navigates to https://github.com/visionmedia/express