Npm:
npm i novelcovidYarn:
yarn add novelcovidJavaScript:
const { NovelCovid } = require('novelcovid');
const track = new NovelCovid();TypeScript:
import { NovelCovid } from 'novelcovid';
const track = new NovelCovid();.all();.yesterday();.countries(); // for ALL..countries('country name'); // For Specific Country.countries(null, 'sort by'); // For Sorting.states(); // For ALL states.states('state name'); // For specfic State.historical(); // For ALL.historical(null, 'country name'); // Specific Country.historical(null, 'country name', 'province name'); // Specific Country and Province.historical(true); // All cases and deaths.jhucsse();
.jhucsee(true); // Gets all the counties
.jhucsee(true, 'countyname'); // for a countyname.countryNames(); // All the country names which are effected.Thanks!