js-blp
This module provides functionality for reading texture files associated with Blizzard games (.blp) in JS and Node.
Installing
NodeJS
npm install js-blp
Web JS
Example Usage
NodeJS
const fs = ;const BLPFile = ; // Check Bufo documentation for other ways to provide data beyond fs.let blp = fs; // Metadata can be accessed after construction..console; // Data is requested for a specific mipmap..let data = blp; // data is an instance of Bufo containing the pixel data in the format:// [ R, G, B, A, R, G, B, A, R, G, B, A ... ]