A parser for .wad files from League of Legends.
lol-wad-parser is installable via:
var WadParser = require('lol-wad-parser'),
wad = new WadParser();
wad.read('assets.wad', function (err, data) {
console.log(data);
// [
// [Buffer ...]
// [Buffer ...]
// ]
});
N.B: All methods act as promises if no callback is passed.
It will roughly parse a .wad file from the given path.
Parameters
- path {string} A path to where the file to parse resides.
- [cb] {Function} A callback called with
(error, parsedData)
as arguments.
It will read a .wad file from the given path, casting all the data into the right variable type.
Parameters
- path {string} A path to where the file to read resides.
- [cb] {Function} A callback called with
(error, readData)
as arguments.
It will read a .wad and extract the result on disk.
Parameters
- input {string} A path to where the file to read resides.
- output {string} The path where the file should be stored.
- [cb] {Function} A callback called with
(error)
as arguments.