import fs from 'fs/promises' import parseStream from '../server/lib/parse_stream.ts' import knex from '../server/lib/knex.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() } knex.destroy()