open-repo-cli

1.0.1 • Public • Published

open-repo-cli

License Sponsor open-repo-cli
Build status Commits since v1.0.1 Last commit Issues
Latest version on npm Dependents Downloads

CLI that quickly opens GitHub pages.

Installation

open-repo-cli on npm

npm install --global open-repo-cli@^1.0.1

open-repo-cli on Yarn

yarn global add open-repo-cli@^1.0.1

@jaid/open-repo-cli on GitHub Packages
(if configured properly)

npm install --global @jaid/open-repo-cli@^1.0.1

Example

Open the repository for the current project

cd /c/Users/Jaid/Projects/readable-ms
open-repo-cli
# https://github.com/Jaid/readable-ms

Open a repository you own

This reads your .gitconfig (user.username or user.name property) to determine your GitHub username. Can be overwritten with env variable githubUser or option --github-user.

open-repo-cli sure-array
# https://github.com/Jaid/sure-array

Open any repository

open-repo-cli webpack/tapable
# https://github.com/webpack/tapable

Open a repository by npm package name

open-repo-cli npm chalk
# https://github.com/chalk/chalk

open-repo-cli npm @babel/core
# https://github.com/babel/babel

Open any repository file

open-repo-cli webpack/tapable/package.json
# https://github.com/webpack/tapable/blob/master/package.json

CLI Usage

After installing package open-repo-cli globally, you can use its command line interface.

open-repo-cli

For usage instructions:

open-repo-cli --help

Development

Setting up:

git clone git@github.com:jaid/open-repo-cli.git
cd open-repo-cli
npm install

Testing:

npm run test:dev

Testing in production environment:

npm run test

License

MIT License
Copyright © 2020, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)

Readme

Keywords

none

Package Sidebar

Install

npm i open-repo-cli

Weekly Downloads

3

Version

1.0.1

License

none

Unpacked Size

9.81 kB

Total Files

4

Last publish

Collaborators

  • jaid