Catalog npm
PACKAGE EXPLORERView in registry

7daystodie-api-wrapper

npm

Interact with a 7DTD web API from Allocs Fixes

7allocapidaysdiefixestoweb
Versions collected24
Direct dependencies27From release 2.2.3
Last observed20 Oct, 21:08 UTC

README

Current package documentation

Build Status Coverage Status Docs NPM Snyk Vulnerabilities for npm package node

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 --only=prod

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

const sdtdServer = {
   ip: "192.168.1.100",
   port: "8082",
   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.`)
}

Running tests

To run tests, you must have a working 7 Days to die server with allocs fixes installed. You must also have at least one player profile saved on the server (logging in once will do this).

Fill in the server connection info in a .env file (see example file) and then run npm test

Other languages

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 24

Collected releases
VersionPublishedDirect dependenciesOpen version
2.2.3Registry latest29 Jul 202327
2.2.126 May 202227
2.2.025 Dec 202127
2.1.04 Dec 202127
2.0.04 Dec 202127
1.5.610 Sept 202028
1.5.59 Sept 202028
1.5.47 Sept 202028
1.5.37 Sept 202028
1.5.21 May 202028
1.5.124 Apr 202022
1.5.023 Apr 202017
1.4.122 Oct 201917
1.4.019 Oct 201917
1.3.120 Mar 201916
1.3.020 Mar 201916
1.2.11 Jul 201816
1.2.030 Jun 201816
1.1.023 Jun 201816
1.0.1022 Jun 201816

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
catalysmsservermanager/7-days-to-die-api-wrapper

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b72788e9aac8824d85036b71b62132c6daa3b768f00cc49708fa042d3959a430