# covid19apis

> Open Source node.js Framework for live covid19 cases by worldwide, county & states

Latest version **1.0.2** (published 2020-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install covid19apis
pnpm add covid19apis
yarn add covid19apis
bun add covid19apis
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-09-13 |
| First published | 2020-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Rohit Chouhan |
| Maintainers | rohit-chouhan |
| Keywords | covid19,  covid19api,  api,  coronavirus,  corona,  corona api,  rest api,  coronavrius api |

## Links

- npm: https://www.npmjs.com/package/covid19apis
- Repository: https://github.com/rohit-chouhan/covid19api
- Homepage: https://github.com/rohit-chouhan/covid19api#readme
- Issues: https://github.com/rohit-chouhan/covid19api/issues
- npm.io page: https://npm.io/package/covid19apis

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-09-13
- 1.0.1 — 2020-09-13
- 1.0.0 — 2020-09-13

## README

![](https://i.ibb.co/brYwMxB/cooltext362411845323038.png)

Open Source node.js Framework for live covid19 cases by worldwide, county &amp; states

All the functions in this framework are created in pure node.js, and the API running in its backend is used by [@mathdroid/covid-19-api](https://github.com/mathdroid/covid-19-api), whatever coronavirus cases are used in this framework are returned by the rest API. Are there. Data in the framework is accessed via the [@mathdroid/covid-19-api](https://github.com/mathdroid/covid-19-api) API.

 __Note__: _You have to install [request package ](https://www.npmjs.com/package/request) also in your project_.

### Install with NPM
```sh
$ npm i covid19apis
```

#### 🌎 By Worldwide Cases
Method | Use | parameters
---|---|---
worldconfirmed() | returns worldwide confirmed cases | no
worldrecovered() | returns worldwide recovered cases | no
worlddeaths() | returns worldwide deaths cases | no

Example:-
```js
const covid19apis = require('covid19apis');
covid19apis.worldconfirmed(function(result){
	console.log("Worldwide Confirmed Cases: "+ result);
});
```
#### 🌎 By Countries Cases
Read this wikipedia page to get all countries ISO Code 👉 [CLICK ME](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)

Method | Use | parameters
---|---|---
confirmed() | returns country's confirmed cases | `country ISO Code`
recovered() | returns country's recovered cases | `country ISO Code`
deaths() | returns country's deaths cases | `country ISO Code`

Example:-
```js
const covid19apis = require('covid19apis');
//INDIA ISO CODE (IN)
covid19apis.confirmed('IN',function(result){
	console.log("India's Confirmed Cases: "+ result);
});
```
#### 🌎 By Country's State Cases

Method | Use | parameters
---|---|---
stateconfirmed() | returns country's state confirmed cases | `country ISO Code`, `State name`
staterecovered() | returns country's state recovered cases | `country ISO Code`, `State name`
statedeaths() | returns country's state deaths cases | `country ISO Code`, `State name`
stateactive() | returns country's state active cases | `country ISO Code`, `State name`

Example:-
```js
const covid19apis = require('covid19apis');
//INDIA ISO CODE (IN), State Name
covid19apis.stateconfirmed('IN','Rajasthan',function(result){
	console.log("Rajasthan, India's Confirmed Cases: "+ result);
});
```

#### 🌎 By Country's State City Cases
_Right now our team is working on it, but we will publish this feature soon._.

### Developers
![Rohit](http://graph.facebook.com/100004453384015/picture?type=square)\
Developed by [Rohit Chouhan](https://rohitchouhan.com),  MIT License, Contact me for any implementation or inquiry.

[![GithHub](https://img.shields.io/badge/Developed%20By-%40github%2Frohit--chouhan-green)](https://github.com/rohit-chouhan)
[![Facebook](https://img.shields.io/badge/Facebook-%40itsrohitofficialprofile-blue)](https://facebook.com/itsrohitofficialprofile)
[![Twitter](https://img.shields.io/badge/Twitter-%40itsrealrohit-blue)](https://twitter.com/itsrealrohit)
[![Instagram](https://img.shields.io/badge/Instagram-%40rohitchauhanofficial-orange)](https://instagram.com/rohitchauhanofficial)
[![Website](https://img.shields.io/badge/Website-rohitchouhan.com-yellow)](https://rohitchouhan.com)

---
_Source: https://npm.io/package/covid19apis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
