A parser for RAF files from League of Legends.
lol-raf-parser is installable via:
var rafParser = require('lol-raf-parser'),
raf = new rafParser();
raf.read('Archive_1.raf', function (err, data) {
console.log(data);
// {
// version: 1,
// files: [...]
// }
});
N.B: All methods act as promises if no callback is passed.
It will roughly parse a RAF 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 RAF file from the given path, removing redundant data.
Parameters
- path {string} A path to where the file to read resides.
- [cb] {Function} A callback called with
(error, readData)
as arguments.
It will extract the conents of a RAF file from the given path.
N.B: The RAF file will be used to understand the structure of the .raf.dat
archive that must have the same name and be in the same diractory.
Parameters
- path {string} A path to where the file to read resides.
- [cb] {Function} A callback called with
(error, readData)
as arguments.