@tbnritzdoge/coronagraph

1.3.1 • Public • Published

COVID-19 Graphs

Endpoints

    - graphC(countryname, type(log, linear))
    - mob(country, province(not required))
    - pie(country)
    - graphCompare([country1, country2], active/cases/recovered/deaths, type(log, linear))

All endpoints return the object

    { url: `image url for chart`, name: `name of countries`}

Usage

const { CoronaGraphsClient } = require(`@tbnritzdoge/coronagraph`)

const client = new CoronaGraphsClient();

const { url } = await client.graphC(`north korea`);

Package Sidebar

Install

npm i @tbnritzdoge/coronagraph

Weekly Downloads

1

Version

1.3.1

License

BSD-3-Clause

Unpacked Size

13.8 kB

Total Files

5

Last publish

Collaborators

  • tbnritzdoge