New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-blte

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-blte

BLTE file reader for Blizzard Entertainment games.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

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.

Keywords

blte

FAQs

Package last updated on 14 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts