mpq
@diablo2/mpq
npm i @diablo2/mpq
mpq

@diablo2/mpq

Utilities to work with diablo2, Clientless map rendering & packet sniffing

by Blayne Chard

0.9.0 (see all)License:MITTypeScript:Not Found
npm i @diablo2/mpq
Readme

@diablo2/mpq

MPQ Reader for diablo2

Supports decoding PKWARE compression


import {Mpq} from '@diablo2/mpq'

// Read from file
const mpq = Mpq.load('patch_d2.mpq');
const lang = await mpq.extract('data\\local\\LNG\\ENG\\patchstring.tbl');
// or
const lang = await mpq.extract('data/local/LNG/ENG/patchstring.tbl');



// Read from buffer
const mpqBuf = await fs.promises.read('patch_d2.mpq');
const mpq = Mpq.load(mpqBuf);
const lang = await mpq.extract('data\\local\\LNG\\ENG\\patchstring.tbl');

Downloads/wk

17

GitHub Stars

126

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

4

OPEN ISSUES

0

OPEN PRs

13
VersionTagPublished
0.9.0
latest
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate