Parser for SpringRTS .sdfz demo files
npm i --save sdfz-demo-parser
import { DemoParser } from "sdfz-demo-parser";
(async () => {
const demoPath = "./example/20201219_003920_Altored Divide Bar Remake 1_104.0.1-1707-gc0fc18e BAR.sdfz";
const parser = new DemoParser();
const demo = await parser.parseDemo(demoPath);
console.log(demo.info.spectators[1].name); // [Fx]Jazcash
})();