Fix several parsing issues.

This commit is contained in:
Joshua Bemenderfer
2021-12-30 17:45:53 -05:00
parent 38976cf29d
commit 7ba3f47785
164 changed files with 1240839 additions and 167 deletions

View File

@@ -2,12 +2,16 @@ 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'
async function main() {
const sources = await fg(['./data/raw/*.zip'])
sources.sort()
const zips = sources.map(source => new StreamZip.async({ file: source }))
const zips = sources.map(source => ({
date: path.basename(source, path.extname(source)),
zip: new StreamZip.async({ file: source })
}))
await TestingTrend(zips)
}