Skip to content

itsSkyCraft/covid.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid-cli.js

An Advanced package For Getting Covid Info And Command Line InterFaces

installation

Hey there! if you Want to install covid-cli.js, Do

npm i -g covid-cli.js

it Requires a Global if you Wanted to try Our CLI!

Basic Usage

To get started, Here An Example Of Getting Worldwide Covid!

const covid = require('covid-cli.js');

covid.all().then(res => {
    console.log(res);

    /*{
        {
            confirmed: 131869262
            recovered: 74898414
            deaths: 2862248
        }
    }*/

});

And Heres an Example of getting Country Covid info

const covid = require('covid-cli.js');

covid.getCountry('Indonesia').then(res => {
    console.log(res);

    /*{
        {
            confirmed: 1537967
            recovered: 1381677
            deaths: 41815
        }
    }*/

});

Cli Usage

To Use The Covid CLI, You Have to install this Globally. using npm i -g covid-cli.js And To Use the cli, type covid in Command prompt. Heres the Example of the CLI. CliExample And If you Wanted to get WorldWide, Choose all. anotherexample And If you Want to Search for a Country, Choose get Country Covid Info. you Can Exit by Choosing Exit!

About

A Package For Getting Covid Info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published