Skip to content

reverietracker/ticformat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ticformat

A parser for the TIC-80 .tic file format

Installation

npm install ticformat

Usage

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:

About

Parser for the TIC-80 .tic file format

Resources

Stars

Watchers

Forks

Packages

No packages published