Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

covid19-risklayer-data

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

covid19-risklayer-data

load covis-19 case-data from a risklayer source

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

covid19-risklayer-data

A npm module to load covis-19 case-data from a risklayer source

Setup

npm install --save-dev covid19-risklayer-data

Usage

To have access to the google-docs API you'll need to create personal credentials. This process is explained in the here.

Data

The following fields are returned if they exists:

  • GEN
  • BEZ
  • AGS
  • cases
  • immune
  • quarantine
  • intensive
  • deaths
  • time

Example

const { getCopyright, getData } = require('covid19-risklayer-data');

(async () => {
	const coyright = getCopyright();
	console.log(`Copyright: ${coyright}\n`);

	const data = await getData({
		clientEmail: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL,
		privateKey: process.env.GOOGLE_PRIVATE_KEY,
	});

	console.log(`First dataset: ${JSON.stringify(data[0], null, 2)}\n`);
})();

Output:

First dataset: {
  "GEN": "Dithmarschen",
  "BEZ": "Kreis",
  "AGS": 1051,
  "cases": 12,
  "quarantine": 11,
  "time": 43911.61415241898
}

License

AGPL-3.0-or-later

Copyright 2020 by Alexander Wunschik dev@wunschik.net and contributors

Keywords

FAQs

Package last updated on 22 Mar 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc