You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i -g gh-index
# Generate a token at https://github.com/settings/tokensecho the-token >~/.gh-index
gh-index # h-index of myself
gh-index -a # other indexes of myself
gh-index [-a] /mutual # ... of my followers intersect following
gh-index [-a] /friends # ... of my followers union following
gh-index [-a] /followers # ... of my followers
gh-index [-a] /followings # ... of my following
gh-index [-a] b1f6c1c4 IoriOikawa # ... of some one(s) else
gh-index show-limit # check how many API calls left
Usage
gh-index [show-limit | who..]
Calculate h-index of Github users
Commands:
gh-index show-limit Show GitHub API usage and limit
gh-index analyze [who..] Calculate h-index of Github users [default]
Positionals:
who <username>{,/mutual,/friends,/followers,/following} [string]
Options:
--version Show version number [boolean]
--token-file Github token file for full control of private repos, see
https://github.com/settings/tokens
[string] [default: "~/.gh-index"]
-t, --token Github token for full control of private repos, see
https://github.com/settings/tokens [string]
--help Show help [boolean]
-a, --all Also calculate g-index and others [boolean] [default: false]
-j, --json Show in json format [boolean] [default: false]
API call results are cached to $GH_INDEX_CACHE_DIR, which is $HOME/.cache/gh-index by default.
Cache is valid for $GH_INDEX_CACHE_AGE, which is 28800000 (8hr) by default.