Skip to content

CLI application for tracking the corona status of indian states in the command line

Notifications You must be signed in to change notification settings

kousiksatish/covidindia-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

covidindia-cli

NPM version Downloads

Get real time access to Covid-19 stats for Indian states on your terminal

Install

# Install globally (recommended).
npm install -g covidindia-cli

# Or run directly with npx (installs CLI on every run).
npx covidindia-cli

Usage

All States

# Display data for all states.
covidindia-cli

# Display data for all states sorted by deceased count.
covidindia-cli --sort deceased

Single State

# Display data for given state.
covidindia-cli <stateNameOrCode>

# Display data for given state i.e. Karnataka
covidindia-cli ka
# or
covidindia-cli karnataka

# Display data for given state i.e. Maharashtra
covidindia-cli mh
# or
covidindia-cli maharashtra

Single State with district level details

# Display district level data for given state.
covidindia-cli <stateNameOrCode> --district
# or
covidindia-cli <stateNameOrCode> -d

# Display district level data for given state i.e. Karnataka
covidindia-cli ka --district
# or
covidindia-cli ka -d

# Display district level data for given state i.e. Maharashtra
covidindia-cli mh --district
# or
covidindia-cli mh -d

Other features

# Display only top 10 results. Can be used in combination with --sort.
covidindia-cli --head 10

# Display only bottom 10 results. Can be used in combination with --sort.
covidindia-cli -h 10

Please note that you can also execute the above cli with just covidindia instead of covidindia-cli

Notes

Data is fetched from https://api.covid19india.org

Inspired by https://github.com/ahmadawais/corona-cli

About

CLI application for tracking the corona status of indian states in the command line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published