1.3.4 โข Published 4 years ago
gitilang v1.3.4
GitiLang
Welcome to Gitilang Find ๐ languages that you mostly use โค๏ธ
Installation
You must have installed
NodeJS
in your machine.You have a
GitHub Account
STEPS
- Here's are steps to get GitHub Token.
- Visit https://github.com/settings/profile
- Visit inside
Developers Settings > Personal access tokens
. - Click on
Generate new token
. - Inside Select scope select all
repo scope
. Now you copy your token.
- Open your terminal
- Export your copied token as
$> export GITHUB_TOKEN=YOUR_COPIED_TOKEN
- Install
gitilang
package$> npm install -g gitilang
- Verify gitilang is installed
$> gitilang
Usage
- Note: Gitilang only show
public repo statistics
. - Consider you want to see
Google
used top 10 languages. - Open
terminal
# Verify gitilang is globally installed!
$> gitilang
VERSION
gitilang/1.0.0 linux-x64 node-v10.14.2 # May vary version.
USAGE
$ gitilang [COMMAND]
COMMANDS
help display help for gitilang
show Show you have used top 10 languages in Github Account :D
# Show all commands
$> gitilang help
# Particular command help
$> gitilang show -h
Show you have used top 10 languages in Github Account :D
USAGE
$ gitilang show [USERNAME]
OPTIONS
-h, --help show CLI help
EXAMPLE
export GITHUB_TOKEN=YOUR_TOKEN
$> gitilang show [UserName]
$> gitilang show BhautikChudasama
# We want to see Google used top 10 languages
$> gitilang show google
# Remember Google is organization so select org
? Given Username is Organization or User? โฆ
โธ org
user
โ
Repositories Fetched!
โ
Repositories languages analyzed!
# Do you want to export fetched languages data, This case no
? Do you want to export fetched data? โฆ
yes
โธ no
# Now you see Google have used top 10 languages bytes.
โ Do you want to export fetched data? ยท no
โโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโ
โ (index) โ 0 โ 1 โ
โโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ 0 โ 'JavaScript' โ 14099827 โ
โ 1 โ 'C++' โ 13078046 โ
โ 2 โ 'Java' โ 7022866 โ
โ 3 โ 'TeX' โ 6184970 โ
โ 4 โ 'HTML' โ 1742227 โ
โ 5 โ 'Python' โ 530826 โ
โ 6 โ 'CSS' โ 487097 โ
โ 7 โ 'C' โ 285801 โ
โ 8 โ 'Starlark' โ 246761 โ
โ 9 โ 'Kotlin' โ 121027 โ
โโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโ
# Column 0 repesents language name
# Column 1 repesents language bytes
Docker Usage
You can also use docker
to used our CLI.
# Pull docker image
$> docker pull bhautikchudasama/gitilang
# Run
$> docker run -i -e GITHUB_TOKEN=YOUR_COPIED_TOKEN bhautikchudasama/gitilang google
# -i => Interactive to retain CLI
# -e => Pass your GITHUB_TOKEN to container
# google => We want to see google has used top 10 languages in their public Github repositories.
Contributors
- BhautikChudasama (@bhautiktweets).