npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@karlbateman/covid-19

v1.0.1

Published

GeoJSON data conversion for the JHU CSSE COVID-19 analysis

Downloads

1

Readme

COVID-19

GeoJSON data conversion for the JHU CSSE COVID-19 analysis

Build Status

Introduction

This project has been created to convert the daily JHU CSSE COVID-19 data into GeoJSON (RFC-7946) so that it can be easily plotted using mapping software, tools and libraries.

Prerequisites

Before proceeding to install this software, please ensure you have NodeJS and NPM installed on your system. I recommend you install these with NVM if you haven't done so already.

Getting Started

Follow the steps below to launch this tool locally:

  • Clone this project onto your machine
  • Change into the newly created directory
  • Install the projects dependencies npm install
  • Build the source files npm run build
  • Copy the example env config cp .env.example .env
  • Update the SOURCE_URL value
  • Run the tool npm start
  • You should have a covid-19.jsonl file

TIP Due to the report size the output file is formatted as JSON Lines for easier application consumption.

Example

Below is a sample from the generated output file.

{"type":"Feature","geometry":{"type":"Point","coordinates":[101,15]},"properties":{"province_or_state":"Not Provided","country_or_region":"Thailand","date":"2020-01-22","running_total_cases":"2","state_and_country":"Not Provided-Thailand","running_total_cases_prev_day":"0.0","daily_new_cases":"2.0","running_total_recoveries":"0","running_total_recoveries_prev_day":"0.0","daily_new_recoveries":"0.0","running_total_deaths":"0","running_total_deaths_prev_day":"0.0","daily_new_deaths":"0.0","state_name":"","first_case_state_rank":"","first_case_country_rank":"","country_code_2":"TH","country_code_3":"THA","country_population_2018":"69428524.0","country_median_age":"37.7","country_running_agg":"2","hundred_case_state_rank":"","hundred_case_country_rank":""}}
{"type":"Feature","geometry":{"type":"Point","coordinates":[101,15]},"properties":{"province_or_state":"Not Provided","country_or_region":"Thailand","date":"2020-01-23","running_total_cases":"3","state_and_country":"Not Provided-Thailand","running_total_cases_prev_day":"2.0","daily_new_cases":"1.0","running_total_recoveries":"0","running_total_recoveries_prev_day":"0.0","daily_new_recoveries":"0.0","running_total_deaths":"0","running_total_deaths_prev_day":"0.0","daily_new_deaths":"0.0","state_name":"","first_case_state_rank":"","first_case_country_rank":"","country_code_2":"TH","country_code_3":"THA","country_population_2018":"69428524.0","country_median_age":"37.7","country_running_agg":"3","hundred_case_state_rank":"","hundred_case_country_rank":""}}
{"type":"Feature","geometry":{"type":"Point","coordinates":[101,15]},"properties":{"province_or_state":"Not Provided","country_or_region":"Thailand","date":"2020-01-24","running_total_cases":"5","state_and_country":"Not Provided-Thailand","running_total_cases_prev_day":"3.0","daily_new_cases":"2.0","running_total_recoveries":"0","running_total_recoveries_prev_day":"0.0","daily_new_recoveries":"0.0","running_total_deaths":"0","running_total_deaths_prev_day":"0.0","daily_new_deaths":"0.0","state_name":"","first_case_state_rank":"1.0","first_case_country_rank":"1.0","country_code_2":"TH","country_code_3":"THA","country_population_2018":"69428524.0","country_median_age":"37.7","country_running_agg":"5","hundred_case_state_rank":"","hundred_case_country_rank":""}}
{"type":"Feature","geometry":{"type":"Point","coordinates":[101,15]},"properties":{"province_or_state":"Not Provided","country_or_region":"Thailand","date":"2020-01-25","running_total_cases":"7","state_and_country":"Not Provided-Thailand","running_total_cases_prev_day":"5.0","daily_new_cases":"2.0","running_total_recoveries":"0","running_total_recoveries_prev_day":"0.0","daily_new_recoveries":"0.0","running_total_deaths":"0","running_total_deaths_prev_day":"0.0","daily_new_deaths":"0.0","state_name":"","first_case_state_rank":"2.0","first_case_country_rank":"2.0","country_code_2":"TH","country_code_3":"THA","country_population_2018":"69428524.0","country_median_age":"37.7","country_running_agg":"7","hundred_case_state_rank":"","hundred_case_country_rank":""}}
{"type":"Feature","geometry":{"type":"Point","coordinates":[101,15]},"properties":{"province_or_state":"Not Provided","country_or_region":"Thailand","date":"2020-01-26","running_total_cases":"8","state_and_country":"Not Provided-Thailand","running_total_cases_prev_day":"7.0","daily_new_cases":"1.0","running_total_recoveries":"2","running_total_recoveries_prev_day":"0.0","daily_new_recoveries":"2.0","running_total_deaths":"0","running_total_deaths_prev_day":"0.0","daily_new_deaths":"0.0","state_name":"","first_case_state_rank":"3.0","first_case_country_rank":"3.0","country_code_2":"TH","country_code_3":"THA","country_population_2018":"69428524.0","country_median_age":"37.7","country_running_agg":"8","hundred_case_state_rank":"","hundred_case_country_rank":""}}

License

BSD © @karlbateman