Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/beyond-all-reason/demo-parser
- Owner: beyond-all-reason
- License: unlicense
- Created: 2020-12-19T20:58:29.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T21:59:30.000Z (11 months ago)
- Last Synced: 2024-10-29T02:09:00.671Z (18 days ago)
- Language: TypeScript
- Size: 2.79 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
})();
```