Working on case cards.

This commit is contained in:
Joshua Bemenderfer
2021-12-30 21:56:56 -05:00
parent 4e83fd3dbd
commit bbaef02acb
512 changed files with 847 additions and 1240952 deletions

View File

@@ -1,8 +1,10 @@
import fs from 'fs/promises'
import fg from 'fast-glob'
import StreamZip from 'node-stream-zip'
import TestingTrend from './parser/testing-trend.js'
import path from 'path'
import StreamZip from 'node-stream-zip'
import Counties from './parser/counties.js'
import StateTesting from './parser/state/testing.js'
import StateCases from './parser/state/cases.js'
async function main() {
const sources = await fg(['./data/raw/*.zip'])
@@ -13,7 +15,10 @@ async function main() {
zip: new StreamZip.async({ file: source })
}))
await TestingTrend(zips)
const counties = await Counties(zips)
await StateTesting(zips)
await StateCases(zips, counties)
}
main()