jhu-covid19-api
v1.0.4
Published
[![npm version](https://badge.fury.io/js/jhu-covid19-api.svg)](https://badge.fury.io/js/jhu-covid19-api) [![install size](https://packagephobia.now.sh/badge?p=jhu-covid19-api)](https://packagephobia.now.sh/result?p=jhu-covid19-api)
Downloads
23
Readme
COVID19 API Wrapper (Node.js)
API wrapper for COVID19 API.
Data is sourced from Johns Hopkins University.
Quick start
npm i -s jhu-covid19-api
// Initialize COVID19 API.
const covid = require('jhu-covid19-api');
(async () => {
// Retrieve summary.
const summary = await covid.summary();
console.log('Summary:', summary);
})();
Documentation
Generate docs:
npm run docs
Start HTTP server serving docs:
npm run http-docs
To do list:
- [x] API documentation
- [ ] Routes extension