Socket
Book a DemoInstallSign in
Socket

last-oasis-logs

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

last-oasis-logs

This library is designed for the game LastOasis, it will give you the ability to easily parse game logs. It is possible to read the file locally. I hope this will be useful to you!

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

LastOasisLogs

This library is designed for the game LastOasis, it will give you the ability to easily parse game logs. It is possible to read the file locally. I hope this will be useful to you!

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the

$ npm install last-oasis-logs

or

$ yarn add last-oasis-logs

Quick Start

LOCAL

import { LogsReader } from 'last-oasis-logs';

(async () => {
  const logsReader = new LogsReader({
    id: 1,
    autoReconnect: true,
    filePath: '/Mist/Saved/Logs/Mist.log',
  });

  await logsReader.init();

  logsReader.on('CHAT_MESSAGE', (data) => {
    console.log(data);
  });
})();

LogsReader return some pre-defined functions:

Functions

FunctionReturnTypeEmitter
initPromisePromise
closePromisePromise
getTileNameString?String or Undefined

Events

EventReturnType
CHAT_MESSAGEresponseTChatMessage
TILE_NAMEresponseTTileName
connectednullnull
closenullnull

FAQs

Package last updated on 03 Jun 2024

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