1.0.7 • Published 6 years ago

ark-files v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

ark-files

Read and parse Ark player profile and tribe files

Install: npm install --save ark-files

Usage:

const ArkFiles = require('ark-files');

let arkFiles = new ArkFiles('/path/to/my/ark/server/folder');

let players = arkFiles.getPlayers();

/**
* Players structure:
* [{
* Tribe: Tribe|false,
* PlayerName: string,
* Level: Number,
* TotalEngramPoints: Number,
* CharacterName: string,
* TribeId: Number|false,
* SteamId: Number,
* PlayerId: Number,
* FileCreated: string,
* FileUpdated: string
* }]
*/

let tribes = arkFiles.getTribes();

/**
* Tribes structure:
* [{
* Players: Players[],
* Name: string,
* OwnerId: Number,
* Id: Number,
* TribeLogs: string[],
* TribeMemberNames: string[],
* FileCreated: string,
* FileUpdated: string
* }]
*/

Players and tribes are cached in memory with a default valid period of 5 minutes. You can pass an override to the constructor in seconds:

new ArkFiles('/path/', (60 * 60)); // 1 hour 
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago