Socket
Book a DemoInstallSign in
Socket

lol-bin-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lol-bin-parser

A parser for .bin files from League of Legends.

0.7.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

lol-bin-parser

A parser for .bin files from League of Legends.

Download

lol-bin-parser is installable via:

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

Usage example

var BinParser = require('lol-bin-parser'),
    bin = new BinParser();
    
    // Read the package.json file
    bin.read('Fizz.bin', function (err, data) {
        console.log(data);
        "933543184": {
            "755834653": "Flesh",
            "762889000": "Fizz",
            "2407209295": {
                "2583134467": [
                    "Characters/Fizz/Skins/Base/Fizz_Base_VO_audio.bnk",
                    "Characters/Fizz/Skins/Base/Fizz_Base_VO_audio.wpk",
                    "Characters/Fizz/Skins/Base/Fizz_Base_VO_events.bnk"
                ],
                "2848286081": [
                    "Characters/Fizz/Skins/Base/Fizz_Base_SFX_audio.bnk",
                    "Characters/Fizz/Skins/Base/Fizz_Base_SFX_events.bnk"
                ]
                ...
            }
        }
    });

Available methods

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

parse(path, cb)

It will roughly parse a .bin 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 .bin file from the given path, leaving only the relevant data of the skeleton model.

Parameters

  • path {string} A path to where the file to read resides.
  • [cb] {Function} A callback called with (error, readData) as arguments.

Keywords

file parser

FAQs

Package last updated on 09 Apr 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.