
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
squad-logs
Advanced tools
This library is designed for the game Squad, it will give you the ability to easily parse game logs. It is possible to read the file locally or protocol SFTP. I hope this will be useful to you!
This library is designed for the game Squad, it will give you the ability to easily parse game logs. It is possible to read the file locally or protocol SFTP. I hope this will be useful to you!
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 squad-logs
or
$ yarn add squad-logs
import { LogsReader } from 'squad-logs';
(async () => {
const logsReader = new LogsReader({
id: 1,
autoReconnect: true,
readType: 'remote',
adminsFilePath: '/SquadGame/ServerConfig/Admins.cfg',
filePath: '/SquadGame/Saved/Logs/SquadGame.log',
host: '127.0.0.1',
username: 'root',
password: '123456',
});
await logsReader.init();
const admins = await logsReader.getAdminsFile();
logsReader.on('PLAYER_CONNECTED', (data) => {
console.log(data);
});
})();
import { LogsReader } from 'squad-logs';
(async () => {
const logsReader = new LogsReader({
id: 1,
autoReconnect: true,
readType: 'local',
adminsFilePath: '/SquadGame/ServerConfig/Admins.cfg',
filePath: '/SquadGame/Saved/Logs/SquadGame.log',
});
await logsReader.init();
const admins = await logsReader.getAdminsFile();
logsReader.on('PLAYER_CONNECTED', (data) => {
console.log(data);
});
})();
Event | Return | Type |
---|---|---|
ADMIN_BROADCAST | response | TAdminBroadcast |
DEPLOYABLE_DAMAGED | response | TDeployableDamaged |
NEW_GAME | response | TNewGame |
PLAYER_CONNECTED | response | TPlayerConnected |
PLAYER_DISCONNECTED | response | TPlayerDisconnected |
PLAYER_DAMAGED | response | TPlayerDamaged |
PLAYER_DIED | response | TPlayerDied |
PLAYER_POSSESS | response | TPlayerPossess |
PLAYER_UNPOSSESS | response | TPlayerUnpossess |
PLAYER_REVIVED | response | TPlayerRevived |
PLAYER_SUICIDE | response | TPlayerSuicide |
PLAYER_WOUNDED | response | TPlayerWounded |
PLAYER_ACCEPTING_CONNECTION | response | TNotifyAcceptingConnection |
ROUND_WINNER | response | TRoundWinner |
ROUND_ENDED | response | TRoundEnded |
ROUND_TICKETS | response | TRoundTickets |
SQUAD_CREATED | response | TSquadCreated |
VEHICLE_DAMAGED | response | TVehicleDamaged |
TICK_RATE | response | TTickRate |
connected | null | null |
close | null | null |
FAQs
This library is designed for the game Squad, it will give you the ability to easily parse game logs. It is possible to read the file locally or protocol SFTP. I hope this will be useful to you!
The npm package squad-logs receives a total of 22 weekly downloads. As such, squad-logs popularity was classified as not popular.
We found that squad-logs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.