lol-raf-parser
v0.8.1
Published
A parser for RAF files from League of Legends.
Downloads
4
Maintainers
Readme
lol-raf-parser
A parser for RAF files from League of Legends.
Download
lol-raf-parser is installable via:
Usage example
var rafParser = require('lol-raf-parser'),
raf = new rafParser();
raf.read('Archive_1.raf', function (err, data) {
console.log(data);
// {
// version: 1,
// files: [...]
// }
});
Available methods
N.B: All methods act as promises if no callback is passed.
parse(path, cb)
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.
read(path, cb)
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.
extract(path, output, cb)
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.