Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 447 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 447 Bytes

SpringRTS Demo Parser

Parser for SpringRTS .sdfz demo files

Usage

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
})();