1.0.0 • Published 3 years ago
@helllover/covid-stats v1.0.0
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
1.0.0
3 years ago