Open an NPM Package's Home Page from the Command Line

March 19, 2020

Open Package Home Page

To open an NPM package’s website home page use the home command and hen the packge name:

npm home <package>

Example

npm home material-bread

Although intended for the package homepage, this command will open whatever the package owner’s set the homepage property to in their package.json

"homepage": "http://material-bread.org",

Open Package Repo

To open an NPM package’s repository from the command line type npm repo and then the package name:

npm repo <package>

Example

npm home material-bread