covidindia-cli
v0.3.0
Published
CLI tool to real time access to Covid-19 stats for Indian states on your terminal
Downloads
7
Maintainers
Readme
covidindia-cli
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
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