import fs from 'fs/promises' import parseStream from '../server/lib/parse_stream.ts' import db from '../server/lib/kysely.ts' for await (const file of process.argv.slice(2)) { const fh = await fs.open(file) console.info(`- parsing file: ${file}`) await parseStream(fh.readableWebStream()) await fh.close() } db.destroy()