ghub-cli

1.0.2 • Public • Published

ghub-cli

Redirect to a npm package's GitHub page from your terminal, if available

usage

recommended for use with npx

> npx ghub-cli express
The GitHub url for express is https://github.com/expressjs/express
Opening in browser...
 
> npx ghub-cli --help
Usage: ghub-cli <moduleName> [--no-open --quiet]
 
opens a browser to the GitHub repository for <moduleName>
 
  -n, --no-open  only prints the url but does not open a browser
  -q, --quiet    suppresses console output
  -h, --help     prints this help
  -v, --version  prints the version of ghub-cli

or, install globally:

> npm i -g ghub-cli
> ghub-cli express
The GitHub url for express is https://github.com/expressjs/express
Opening in browser...

thanks

inspired by ghub.io, thank you @juliangruber!

what about npm.im?

there's an npm cli package called npm-url so you can

> npx npm-url express

license

ISC

Readme

Keywords

Package Sidebar

Install

npm i ghub-cli

Weekly Downloads

3

Version

1.0.2

License

ISC

Last publish

Collaborators

  • suarasaur