This commit is contained in:
insects 2025-02-03 17:57:43 +01:00
commit 5dc1b3d1ff
7 changed files with 980 additions and 0 deletions

16
convert-to-json.js Normal file
View file

@ -0,0 +1,16 @@
// Converts raw data from ff14-fish-tracker to JSON files that we can use with Serde.
// The only thing that manually needs to be done is to export the variables from said files.
// Run using `node convert-to-json.js`.
import { DATA } from "./data.js";
import { FISH_INFO } from "./fish_data.js";
import fs from "node:fs/promises";
const result = {
data: DATA,
fish: FISH_INFO,
};
const json = JSON.stringify(result);
await fs.writeFile("data.json", json, { encoding: "utf8" });