factorio-process-data.ts 535 B

123456789101112
  1. import { factorioPath, getJsonData } from "./helpers/file.helper.js";
  2. import type { DataRawDump } from "./factorio-process-data.models.js";
  3. //const modsPath = `${factorioPath}/mods`;
  4. const scriptOutputPath = `${factorioPath}/script-output`;
  5. const dataRawPath = `${scriptOutputPath}/data-raw-dump.json`;
  6. // const tempPath = "./scripts/temp";
  7. // const tempIconsPath = `${tempPath}/icons`;
  8. const data = getJsonData(dataRawPath) as DataRawDump;
  9. Object.values(data["assembling-machine"]).forEach((machine) => console.log(machine.name));