1.0.0 • Published 3 years ago

@helllover/covid-stats v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

corona-stats

corona-stats is a simple module to get information about COVID-19. You can get information about global covid stats, about the specified country and also fetch the country flag.

Examples

const { Corona } = require("@helllover/covid-stats");

// Getting global COIVD-19 stats
Corona.getGlobalStats()
.then(console.log)
.catch(console.error)

// Getting information about the specified country
Corona.getCountryStats("America")
.then(console.log)
.catch(() => {}) // Disable error messages if someone provides an invalid country name

// Fetching the specified country flag
Corona.fetchCountryFlag("America")
.then(console.log)
.catch(() => {}) // Disable error messages if someone provides an invalid country name

Discord

My Discord is: HellLover#9626