1.2.0 • Published 6 years ago

node-blte v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

BLTEReader

This module provides a NodeJS reader for the BLTE file-format found in games by Blizzard Entertainment. The BLTEReader class is an extension of the Bufo buffer utility class.

Installing

npm install node-blte

Usage

// Import module, naturally...
const BLTEReader = require('node-blte');

// Register encryption keys (for encrypted blocks).
BLTEReader.registerDecryptionKeys({
    '213D67C1543A63A9': '1F8D467F5D6D411F8A548B6329A5087E',
    '2BB68ACDC6254F79': '76583BDACD5257A3F73D1598A2CA2D99'
});

let key = 'a19e2d57adf9830d989e3dad7dd56cec';
let buffer = obtainBufferSomehow();

// Create a new BLTEReader from an existing buffer (or Bufo instance).
let reader = new BLTEReader(buffer, key);

// `reader` can now be used just like a normal Bufo instance, and will automatically
// decompress and decrypt blocks (using given keys) as needed.

// If you need all blocks to be pre-processed (buffer transfer, etc), call `readAllBlocks()` first.
1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago