Open an NPM Package's Home Page from the Command Line
March 19, 2020
npm
Open Package Home Page
To open an NPM package's website home page use the home
command and hen the packge name:
ssh
1.npm home <package>
Example
ssh
1.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
js
1."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:
ssh
1.npm repo <package>
Example
ssh
1.npm home material-bread