Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beyond-all-reason/demo-parser

Parser for SpringRTS .sdfz demo files
https://github.com/beyond-all-reason/demo-parser

Last synced: 9 days ago
JSON representation

Parser for SpringRTS .sdfz demo files

Awesome Lists containing this project

README

        

# SpringRTS Demo Parser
Parser for SpringRTS .sdfz demo files

## Usage

`npm i --save sdfz-demo-parser`

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