Stats

 Latest version : 1.2.1

 Last updated on 2018-07-01T06:33:05.211Z

 Keywords : web, api, 7, days, to, die, alloc, fixes

 Downloads :

  • 87 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

Build Status Coverage Status Docs

7 Days to die API wrapper

A simple wrapper around the web API from Alloc's fixes mod.

## Requirements

  • A 7 Days to Die server running Alloc's Fixes

The port required for this module is the same as the dynamic map page. For more info, see the documentation of the mod itself https://7dtd.illy.bz/wiki/Ports

## Example usage

Install with npm npm i 7daystodie-api-wrapper

```js const SdtdApi = require('7daystodie-api-wrapper');

const sdtdServer = { ip: "192.168.0.1", port: "8084", adminUser: "admin", adminToken: "secret" }

foo();

async function foo() { let stats = await SdtdApi.getStats(sdtdServer); console.log(The current ingame time is ${stats.gametime.days} days, ${stats.gametime.hours} hours and ${stats.gametime.minutes} minutes.) } ```

 Comments