1.3.1 • Published 4 years ago

@tbnritzdoge/coronagraph v1.3.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
4 years ago

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`);