Socket
Book a DemoInstallSign in
Socket

lol-anm-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lol-anm-parser

A parser for .anm files from League of Legends.

0.9.1
latest
Source
npmnpm
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

lol-anm-parser

A parser for .anm files from League of Legends.

Download

lol-anm-parser is installable via:

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

Usage example

var AnmParser = require('lol-anm-parser'),
    anm = new AnmParser();
    
    anm.read('Lamb_Idle.anm', function (err, data) {
        console.log(data);
        //  {
        //      duration: 10.066666666666666
        //      FPS: 30
        //      bones: [
        //          {
        //              hash: 497252,
        //              frames: [
        //                  {
        //                      position: {...}
        //                      quaternion: {...}
        //                      scale: {...}
        //                  }
        //              ]
        //              ...
        //          }
        //          ...
        //      ]
        //  }
    });

Available methods

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

parse(path, cb)

It will roughly parse a .anm 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 .anm file from the given path, creating missing data or removing irrelevant data from the animation file.

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 24 Jul 2016

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.