Skip to content

Latest commit

 

History

History

gh-open

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

gh-open License: GPL v3 npm version

Open a GitHub repository in your browser.

Prerequisites

Installation

ℹ️ This is a pure ESM module.

Run yarn global add @ffflorian/gh-open or npm install -g @ffflorian/gh-open.

Usage

Usage: gh-open [options] [directory]

Open a GitHub repository in your browser. Opens pull requests by default.

Options:
  -d, --debug             Enable debug logging
  -p, --print             Just print the URL
  -b, --branch            Open the branch tree (and not the PR)
  -t, --timeout <number>  Set a custom timeout for HTTP requests
  -v, --version           output the version number
  -h, --help              display help for command

Test

yarn
yarn test