Socket
Socket
Sign inDemoInstall

@helllover/covid-stats

Package Overview
Dependencies
100
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @helllover/covid-stats

A simple module to get information about COVID-19


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 15 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc