import { Replay } from 'node-osr-parser';
// CommonJS
const { Replay } = require('node-osr-parser');
const a : Buffer = readFileSync('your/osr/file');
new Replay(a).deserialize().then(replay => console.log(replay.player));
MIT license. See here.
import { Replay } from 'node-osr-parser';
// CommonJS
const { Replay } = require('node-osr-parser');
const a : Buffer = readFileSync('your/osr/file');
new Replay(a).deserialize().then(replay => console.log(replay.player));
MIT license. See here.