@retrovm/media
v0.4.0
Published
Cassette tape encode/decode library for retro computers (ZX Spectrum today, more systems planned) — Bun and Node.js.
Readme
@retrovm/media
Cassette tape encode/decode library for retro computers — ZX Spectrum today, more systems planned. Works in Bun and Node.js.
Install
bun add @retrovm/mediaUse
import { Tape, zxtap } from "@retrovm/media";
const tape = zxtap(await Bun.file("game.tap").bytes());
for (const block of tape.parseLogicalBlocks()) {
console.log(block);
}tapview
An interactive terminal browser for .tap files ships as the tapview bin. After installing the package, run:
tapview game.tapDevelopment
bun install
bunx tsc --noEmit # type-check
bun run build # compile dist/ for publishing (bun run <file> works directly on src/ without building)