Skip to content

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.

HellLover/covid-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

covid-stats

covid-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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published