1.1.4 • Published 2 years ago
covidd v1.1.4
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 || array0 = Cases; array1 = Deaths; array2 = 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