1.3.4 โ€ข Published 4 years ago

gitilang v1.3.4

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

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

    1. 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.

    1. 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).