q3-log-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Quake 3 Log Parser

This library is a basic node module providing the capability to parse Quake 3 log files.

Usage

Simple example to parse a log file:

import { LogFile } from 'q3-log-parser';
 
var q3log = new LogFile();
q3log.parseLog(gamesLog, function (log) {
    q3log = log;
});

If you needs server wide stats you can parse a log and create a instace of ServerStats object.

import { LogFile, ServerStats } from 'q3-log-parser';
 
var q3log = new LogFile();
q3log.parseLog(gamesLog, function (log) {
    q3log = log;
    var serverStats = new ServerStats(q3log);
    serverStats.exportToJson('/my/path/to/stats.json');
});

Readme

Keywords

Package Sidebar

Install

npm i q3-log-parser

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

14.4 kB

Total Files

16

Last publish

Collaborators

  • alex_hendel