Skip to content

disease-sh/node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NovelCovid

View information on the Coronavirus outbreak around the world.

Support Build Languages
Version Size Downloads
Issues Pull Request LICENSE


Installation

Npm:

npm i novelcovid

Yarn:

yarn add novelcovid

Usage

JavaScript:

const { NovelCovid } = require('novelcovid');

const track = new NovelCovid();

TypeScript:

import { NovelCovid } from 'novelcovid';

const track = new NovelCovid();

Methods

All

.all();

Yesterday

.yesterday();

Countries

.countries(); // for ALL.
.countries('country name'); // For Specific Country
.countries(null, 'sort by'); // For Sorting

States

.states(); // For ALL states
.states('state name'); //  For specfic State

Historical

.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

.jhucsse();

.jhucsee(true); // Gets all the counties

.jhucsee(true, 'countyname'); // for a countyname

countryName

.countryNames(); // All the country names which are effected.

Thanks!

Packages

No packages published

Contributors 13