corona-virus19
v0.0.6
Published
This is a simple package to view coronavirus stats for any country!
Downloads
4
Readme
What is this?
This is a simple package to view coronavirus stats for any country!
Installation & Usage
npm install corona-virus19
const { coronaVirus } = require("corona-virus19");
coronaVirus("UK")
.then(body => console.log(body))
//returns all info (cases, deaths ect)
coronaVirus().then(body => console.log(body))
//returns worldwide info
coronaVirus("Thailand", {
type: "cases"
})
.then(body => console.log(body))
//returns only cases of thailand.
coronaVirus(country, option) parameters:
"country: string (optional)" The country you want to view the stats of.
"option: string (optional)" The thing you want to view. (cases, deaths, recovered)