S
S
SFY2021-05-06 11:53:17
Node.js
SFY, 2021-05-06 11:53:17

How to correctly unpack data in nodejs?

There is data containing game data, they are packed (BZ2).
How to unpack it using nodejs?
I couldn't find a solution on my own.
Through php I decided, but I need a nodejs solution.

the file itself https://wdfiles.ru/273924

an example of a solution in php:

$data = file_get_contents('_bzh_16202879528399');
var_dump(bzdecompress(substr($data,4)));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-05-06
@SFY

learn how to use npm search:
https://www.npmjs.com/search?q=bz2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question