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

krp-node-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krp-node-wrapper

Node.js Wrapper to communicate with Kart Racing Pro Server

latest
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

krp-node-wrapper

Node.js Wrapper to communicate with Kart Racing Pro Server.

With krp-node-wrapper you have a wrapper which reads the data from the udp livetiming server.

Requirements

  • None

Installing

This package was tested under Node.js 16.16.0 x64.

Kart Racing Pro release13b was used while testing.

npm install krp-node-wrapper

API documentation

Types

Under src/types/

ServerWrapper:
Update Data Types:
EventT
EntryT
EntryRemoveT
SessionT
SessionStatusT
WeatherT
SessionEntryT
DriverStatusT
BestLapT
LastLapT
PenaltyT
LapT
SplitT
SpeedT
ClassificationT
ChallengeDataT
TrackDataT
TrackSegmentT
TrackPositionT
ContactT

ClientWrapper:
Update Data Types:
KartDataT
KartEventT
KartLapT
KartSessionT
KartSplitT

ServerWrapper

Examples

const wrapper = new KRPNodeWrapper(Hostname, Port, Password, Logging)
EventDescription
"connected"Shared Memory connected.
"disconnected"Shared Memory disconnected.
"update"Sends all the received data.
wrapper.on("update", (type: string, data) => {
    console.log(type, data)
})
Function / AttributeDescription
connectedIs udp client connected?
wrapper.connected

ClientWrapper

Configuration

proxy_udp.ini

[params]
enable = 1
port = 30000
ip = 127.0.0.1:30001
delay = 1
info = 1

Examples

const wrapper = new KRPNodeWrapper(Port, Logging)
EventDescription
"update"Sends all the received data.
wrapper.on("update", (type: string, data) => {
    console.log(type, data)
})

License

Released under the MIT License.

FAQs

Package last updated on 03 Jun 2023

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