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

wow-combat-log-parser

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wow-combat-log-parser

This is a parser library for World of Warcraft combat logs, written in typescript and can be used as a Node.js package.

latest
npmnpm
Version
6.0.0
Version published
Weekly downloads
7
-80%
Maintainers
3
Weekly downloads
 
Created
Source

This is a parser library for World of Warcraft combat logs, written in typescript and can be used as a Node.js package.

Installation

yarn add wow-combat-log-parser

or

npm install --save wow-combat-log-parser

Type definitions are already included in the package, so no need to install @types/wow-combat-log-parser separately.

Usage

import { ICombatData, IMalformedCombatData, WoWCombatLogParser } from "wow-combat-log-parser";

const logParser = new WoWCombatLogParser();

logParser.on("arena_match_ended", (data) => {
  const combat = data as ICombatData;
  // do something with the valid combat object
});

logParser.on("malformed_arena_match_detected", (data) => {
  const malformedCombat = data as IMalformedCombatData;
  // do something with the malformed combat object
});

// populate the lines array by reading from the wow combat log file
const lines = [];

lines.forEach((line) => {
  // this can trigger the arena_match_started and arena_match_ended events
  logParser.parseLine(line);
});

// clean up
logParser.removeAllListeners();

Contributing

Contributions are welcome! Please feel free to open an issue on GitHub or submit a pull request.

FAQs

Package last updated on 22 Dec 2022

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