ticformat
v1.0.0
Published
Parser for the TIC-80 .tic file format
Downloads
5
Readme
ticformat
A parser for the TIC-80 .tic file format
Installation
npm install ticformatUsage
This package exports a class TICFile with a static fromBuffer method, which accepts a buffer containing the binary data of the .tic file.
import { readFileSync } from "node:fs";
import { TICFile } from "ticformat";
const buf = readFileSync("example.tic");
const tic = TICFile.fromBuffer(buf);The TICFile object provides a chunks attribute, giving a list of the chunks in the file. Each chunk has the attributes:
type- numeric identifier for the chunk typebank- bank numberdata- chunk data, as a buffer
