2025-09-11 23:48:23 +00:00
|
|
|
import fs from "node:fs";
|
|
|
|
|
import { inspect } from "node:util";
|
|
|
|
|
import { parseInteriorBuffer } from "@/src/interior";
|
|
|
|
|
|
|
|
|
|
const interiorFile = process.argv[2];
|
|
|
|
|
const interiorBuffer = fs.readFileSync(interiorFile);
|
|
|
|
|
const interiorArrayBuffer = interiorBuffer.buffer.slice(
|
|
|
|
|
interiorBuffer.byteOffset,
|
2025-11-29 17:08:20 +00:00
|
|
|
interiorBuffer.byteOffset + interiorBuffer.byteLength,
|
2025-09-11 23:48:23 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
inspect(parseInteriorBuffer(interiorArrayBuffer), {
|
|
|
|
|
colors: true,
|
|
|
|
|
depth: Infinity,
|
2025-11-29 17:08:20 +00:00
|
|
|
}),
|
2025-09-11 23:48:23 +00:00
|
|
|
);
|