Skip to content

dawsbot/openg

Repository files navigation

openg

Build Status XO code style

open Github repo pages for npm modules in-browser


demo gif


CLI

Install

$ npm install -g openg-cli

If you'd rather have the API, click here


Usage

$ openg
# opens the github repo page for the current directory in browser

$ openg chalk
# opens the github repo page for chalk in browser

$ openg inf sist openg --issues
# opens the github issues pages for all in browser

More help

$ openg --help

  Usage
    $ openg [<options>]

    $ openg <module name(s)> [<options>]

  Options
    -i, --issues  Open the issue page for specified modules
    -d, --dryRun  List what links would be opened instead of opening

  Examples
    $ openg
    # opens the github repo page for the current directory in browser

    $ openg express
    # opens the github repo page for express in browser

    $ openg inf sist openg --issues
    #  opens the github issues pages for inf, sist, and openg in browser`,

FAQ

How is this different than npm repo?

npm repo is an npm built-in. Here are the differences:

  • opts allows you to open issues page(s)
  • openg supports multiple module openings, npm repo supports only one at a time.

Contribute

npm run install

Since this is a lerna project, both openg-cli and openg are contained within the packages/ folder.


Related


License

MIT © Dawson Botsford


If you like this, star it. If you want to follow me, follow me.