1.0.0 • Published 6 years ago
node-coronavirus v1.0.0
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));1.0.0
6 years ago