NodeJS library for reading and writing osu replay files
- Load .osr replays
- Create new Replays
- Write them in .osr
- Synchronous and asynchronous
- Promise asynchronous functions
Download it from npm.
$ npm install node-osr --save
Check out the examples
Require node-osr
let osr = require('node-osr')
Promise version of osr.read().
Asynchronious version of osr.readSync().
Returns a Replay class with the input's data.
Creates a new blank Replay class.
Replay {
gameMode: 0,
gameVersion: 0,
beatmapMD5: '',
playerName: '',
replayMD5: '',
number_300s: 0,
number_100s: 0,
number_50s: 0,
gekis: 0,
katus: 0,
misses: 0,
score: 0,
max_combo: 0,
perfect_combo: 0,
mods: 0,
life_bar: '',
timestamp: 0,
replay_length: 0,
replay_data: '',
unknown: 0
}
Promise version of replay.serialize().
Asynchronous version of replay.writeSync()
Writes replay into a file specified by path
Asynchronous version of replay.serializeSync().
Returns the Buffer of the replay.
osureplayparser - Clearly formatted replay reading based on this library
MIT