Install the package
npm install node-coronavirus
Import the package
const coronavirus = require('node-coronavirus');
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));