Socket
Socket
Sign inDemoInstall

@aero/corona

Package Overview
Dependencies
3
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aero/corona

API wrapper with caching around disease.sh.


Version published
Weekly downloads
13
increased by550%
Maintainers
2
Install size
1.18 MB
Created
Weekly downloads
 

Readme

Source

COVID-19 Statistics

Tiny API wrapper with caching for https://corona.lmao.ninja using centra.

Usage

const { CoronaClient } = require('@aero/corona');

const corona = new CoronaClient({
	lifetime: 8000 // cache lifetime in milliseconds
});
corona.total(): Promise<TotalStats>

corona.country(countryCode: string): Promise<CountryStats>
class CountryStats {
	name: string;
	cases: number;
	todayCases: number;
	deaths: number;
	todayDeaths: number;
	recovered: number;
	critical: number;
	active: number;
	casesPerOneMillion: number;
	deathsPerOneMillion: number;
}
class TotalStats {
	cases: number;
	deaths: number;
	recovered: number;
	updated: Date;
}

FAQs

Last updated on 23 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc