20 lines
451 B
JavaScript
20 lines
451 B
JavaScript
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 => ({
|
|
date: path.basename(source, path.extname(source)),
|
|
zip: new StreamZip.async({ file: source })
|
|
}))
|
|
|
|
await TestingTrend(zips)
|
|
}
|
|
|
|
main()
|