Catalog npm
Back to packageRELEASE DETAILS

1.0.9

npm

7daystodie-api-wrapper

Interact with a 7DTD web API from Allocs Fixes

7allocapidaysdiefixestoweb
Published22 Jun 2018
Direct dependencies16
Transitive dependenciesNot calculated

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.

Declared dependencies 16

Native requirements
16 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
dotenv
Environment
{
  "local_name": "dotenv",
  "alias": false,
  "peer_metadata": null
}
^6.0.0runtime
snekfetch
Environment
{
  "local_name": "snekfetch",
  "alias": false,
  "peer_metadata": null
}
^4.0.2runtime
@types/chai
Environment
{
  "local_name": "@types/chai",
  "alias": false,
  "peer_metadata": null
}
^4.1.4development
@types/chai-as-promised
Environment
{
  "local_name": "@types/chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.3development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^10.3.3development
@types/snekfetch
Environment
{
  "local_name": "@types/snekfetch",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.1development
coveralls
Environment
{
  "local_name": "coveralls",
  "alias": false,
  "peer_metadata": null
}
^3.0.1development
istanbul
Environment
{
  "local_name": "istanbul",
  "alias": false,
  "peer_metadata": null
}
^0.4.5development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.0development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.3.0development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^6.1.2development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
^0.11.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^2.9.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-o4ypGZiNKnp0oE9V9OyJcPKRWk3vZhY6om7HYZic8KqSTt77QC3xO9K4mqcCd8orWeGRHJzPHq9SIo/DjN7pQA==",
  "shasum": "84efee2cf7b4b5b12fc6c18beba6f14c648cacb7",
  "tarball": "https://registry.npmjs.org/7daystodie-api-wrapper/-/7daystodie-api-wrapper-1.0.9.tgz",
  "fileCount": 70,
  "unpackedSize": 267195,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLSJSCRA9TVsSAnZWagAA8joP/06CS2aJmRUeLLDrbLY0\nTiDSgtscaEpDu6G1nuQaedQ4zMrdoAiTPdPv76ShoUTofERV2i7c/uGmlGzP\nSAWqCTV2/W0l8vj1LTawVAKMk7woznIkbpIT9T34gmPnF4uxAQB0v1ukUShN\nuHjBt5afi227TcXUKenw621M+Wi9H5SHVraa0P8736NPuyhi93hP97zDNl6S\nQstJOsEckZugpT0pxxtRIrTJHHWikX99ANXP42CJKwMbgFvsvrc/jWhhQbkb\nmt/VRpsVAUfAYb15e6Febo7iVYC9wo1+2Tr+hG/cEWv1gVkSSFZQkuh3HODZ\njZXWYyCvFVz2e7NL6XjDiQ6fgRg36RSz419oEQjDgvdwFC1klg42CuQ6Do7O\nY53ehOaFKXk4eBmHVEIRmtgnev2399yW3e4jPII1zUaglJ7Yph55aPF0blae\nsU1Oc3caaCe/oWHJ+OibcWvSnZqIdPZkhmG7Sfj0v3TE8NUir2VZD9TqBVah\ncihq7FIyiswO+7myizRVX6DuuHNscKW3jCr7MMqXZDCBVRHt28CidXVRRohN\nIFO/Bd0mSQ4pC44c0g/3lUiS1vyCrZALms0x8cTO1bgoGKFpUpgoI4zG1gb4\nZmUGSu11O2TSF82Y3WNKmxfxXU7qzgGveDnNJhJIV8vFnKQ5qaLpeWeVU9ng\nlidn\r\n=MjiF\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCWVk/ZeJBjAsMQSNOrjYBJ/HmJe09/NySCy78G3Eh8qAIhAJozIX9SvuaoFwTiqI2te30pvQksu1qXzxXZiRfl2Yfw"
    }
  ]
}

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_version:c60b6913b84d3eccea85ec9d7cde95dc47f1a2d475e105b3e596f1bfbc8dfc50

Other collected versions

2.2.329 Jul2.2.126 May2.2.025 Dec2.1.04 Dec2.0.04 Dec1.5.610 SeptView all collected versions →