1.0.0 • Published 3 years ago
covid-cli.js v1.0.0
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.
And If you Wanted to get WorldWide, Choose all.
And If you Want to Search for a Country, Choose get Country Covid Info
.
you Can Exit by Choosing Exit!
1.0.0
3 years ago