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

lol-wad-parser

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lol-wad-parser

A parser for .wad files from League of Legends.

latest
Source
npmnpm
Version
0.14.0
Version published
Weekly downloads
13
18.18%
Maintainers
1
Weekly downloads
 
Created
Source

lol-wad-parser

A parser for .wad files from League of Legends.

Download

lol-wad-parser is installable via:

  • GitHub git clone https://github.com/Pupix/lol-wad-parser.git
  • npm: npm install lol-wad-parser

Usage example

var WadParser = require('lol-wad-parser'),
    wad = new WadParser();

    wad.read('assets.wad', function (err, data) {
        console.log(data);
        //  ...
        // {
        //   pathHash: '493258d8dc25e145',
        //   offset: 532843,
        //   compressedFileSize: 874,
        //   fileSize: 1850,
        //   type: 1,
        //   duplicate: 0,
        //   unk: 0,
        //   unk0: 0,
        //   sha256: '2c982e477bb2af65',
        //   fileName: 'plugins/rcp-fe-lol-uikit/global/default/components/animated-border-overlay/index.js'
        // }
        //  ...
    });

Available methods

N.B: All methods act as promises if no callback is passed.

parse(path, cb)

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.

read(path, cb)

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.

extract(input, output, cb)

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.

Keywords

file parser

FAQs

Package last updated on 02 Jan 2018

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