@louis.sugar/covid19

1.0.4 • Public • Published

CoronaVirus API

The novelcovid NPM package is an API wrapper for https://corona.lmao.ninja/ api.

there are 2 methods.

  • all
  • countries(country)

If you don't pass an argument to countries, it'll respond with an array of all country objects.

Usage

You can use it like this:

var covid = require('novelcovid');

covid
	.all()
	.then(data => console.log(data))
	.catch(err => console.error(err));

covid
	.countries('usa')
	.then(data => console.log(data))
	.catch(err => console.error(err));

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @louis.sugar/covid19

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    36.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • louis.sugar