@helllover/covid-stats

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @helllover/covid-stats

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

9.31 kB

Total Files

14

Last publish

Collaborators

  • helllover