node-coronavirus
v1.0.0
Published
Install the package ``` npm install node-coronavirus ```
Readme
Node Coronavirus
This module is a wrapper of ExpDev07's coronavirus-tracker-api
Getting Started
Install the package
npm install node-coronavirusImport the package
const coronavirus = require('node-coronavirus');Usages
coronavirus.getLatest()
.then(res => console.log(res));coronavirus.getSources()
.then(res => console.log(res));coronavirus.getLocationById(0)
.then(res => console.log(res));coronavirus.getLocationByCountryCode("US")
.then(res => console.log(res));