An open API service indexing awesome lists of open source software.

https://github.com/ayan4m1/gh-list-repos

List GitHub repositories for yourself and/or your organizations
https://github.com/ayan4m1/gh-list-repos

cli github nodejs utility

Last synced: about 2 months ago
JSON representation

List GitHub repositories for yourself and/or your organizations

Awesome Lists containing this project

README

          

# gh-list-repos

[![npm version](https://badge.fury.io/js/@ayan4m1%2Fgh-list-repos.svg)](https://badge.fury.io/js/@ayan4m1%2Fgh-list-repos)

## features

- Written in TypeScript
- Small footprint

## requirements

- Node 18+

## installation

> npm i -g @ayan4m1/gh-list-repos

## options

**todo:** document all the options

## config file

The config file for list-gh-repos is `~/.ghreporc.yml`. If you use interactive authentication, then gh-list-repos will manage this file for you. If you want to use a GitHub Personal Access Token (PAT), here is an example:

```yml
username: ayan4m1
token: 'omg123hax456'
```

If you are trying to authenticate an organization, use the YAML key `organization` instead of `username`.

## usage

> gh-list-repos -u ayan4m1 -v public -n "gh-\*-repos"

Will list all public repos for the user `ayan4m1` matching the glob `gh-*-repos`.

> gh-list-repos -o powerprof -v all

Will list all public and private repos belonging to the `powerprof` organization. An authorization token will be obtained interactively if it is not specified with the `-t, --token` option.