mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-16 10:50:57 +00:00
Initial commit
This commit is contained in:
commit
2211ed7650
10117 changed files with 735995 additions and 0 deletions
17
scripts/interior.ts
Normal file
17
scripts/interior.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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,
|
||||
interiorBuffer.byteOffset + interiorBuffer.byteLength
|
||||
);
|
||||
|
||||
console.log(
|
||||
inspect(parseInteriorBuffer(interiorArrayBuffer), {
|
||||
colors: true,
|
||||
depth: Infinity,
|
||||
})
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue