1
0
Files
jecnarozvrh/scrape/parse.ts
T
jzitnik f559d3a91b
Remote Deploy / deploy (push) Successful in 1m20s
fix: No parse
2026-06-02 16:04:31 +02:00

31 lines
1.0 KiB
TypeScript

/*
* Copyright (C) 2025 Jakub Žitník
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
import ExcelJS from "exceljs"
//import parseV1V2 from "./parse/v1_v2.js";
import parseV3 from "./parse/v3.js";
import generateArchivedV1_V2 from "./parse/archived/v1_v2.js";
export default async function parseThisShit(downloadedFilePath: string) {
const workbook = new ExcelJS.Workbook();
await workbook.xlsx.readFile(downloadedFilePath);
//await parseV1V2(workbook);
await generateArchivedV1_V2();
await parseV3(workbook, downloadedFilePath);
}
//parseThisShit("volume/db/current.xlsx")