UNPKG

empeeku

Version:

Javascript port of mpyq python library for reading MPQ archives.

12 lines (7 loc) 320 B
const assert = require('assert'); const fs = require('fs'); const path = require('path'); const MPQArchive = require('../mpyq').MPQArchive; var archive = new MPQArchive(path.dirname(process.argv[1]) + path.sep + 'test.StormReplay'); let result = archive.readFile('replay.game.events') console.log(result)