covidd

1.1.4 • Public • Published

Covidd

Covidd is a JavaScript/TypeScript library for getting covid information about different countries. The information provided is covid case count, covid death count, and covid recovery count.

Note: All of the data is provided by worldometers.info | Requires node

Use Cases:

Methods:

getData(statistic, country)

statistic - deaths | cases | recovery | all
all - array with deaths, cases, and recovery || array[0] = Cases; array[1] = Deaths; array[2] = Recovery

JavaScript

const Covid = require('covidd');
const covid = new Covid();
await covid.getData("cases", "USA");

Typescript

import Covid from 'covid';
const covid = new Covid();
await covid.getData("cases", "USA")

NPM Package Link: https://www.npmjs.com/package/covidd

Package Sidebar

Install

npm i covidd

Weekly Downloads

0

Version

1.1.4

License

ISC

Unpacked Size

20.3 kB

Total Files

6

Last publish

Collaborators

  • lazeash