jhucsse.covid
v1.3.2
Published
COVID-19 Statistics by JHU CSSE
Downloads
12
Readme
COVID-19 API Wrapper
jhucsse.covid wraps open API coronavirus-tracker-api by ExpDev07
API
All
var data = require('jhucsse.covid');
data.all()
.then(console.log);
//-> { confirmed: {…}, deaths: {…}, latest: {…}, recovered: {…} }
Confirmed, Deaths and Recovered
var data = require('jhucsse.covid');
//data.deaths(), data.recovered() same thing
data.confirmed()
.then(console.log);
//-> { last_updated: "2020-03-16T09:29:53.468127Z", latest: 167449, locations: […] }
getCountry({cc:'Country Code'})
var data = require('jhucsse.covid');
data.getCountry({cc:'CN'})
.then(console.log);
//-> { confirmed: {…}, deaths: {…}, recovered: {…} }