A Node module for getting information from "Ark: Survival Evolved" game servers.
  • JavaScript 100%
Find a file
2023-07-15 19:36:28 +00:00
examples Add ability to turn off color 2018-10-18 18:39:55 -04:00
test Refactoring and introducing info classes. 2018-08-19 19:42:45 -04:00
.eslintrc.json Updates 2023-07-15 19:36:28 +00:00
.gitignore Add initial content. 2018-08-05 20:35:10 -04:00
arkserverinfo.js Refactoring and introducing info classes. 2018-08-19 19:42:45 -04:00
arkservers.js Refactoring and introducing info classes. 2018-08-19 19:42:45 -04:00
LICENSE Add initial content. 2018-08-05 20:35:10 -04:00
package-lock.json Updates 2023-07-15 19:36:28 +00:00
package.json Refactoring and introducing info classes. 2018-08-19 19:42:45 -04:00
README.md Add initial content. 2018-08-05 20:35:10 -04:00

arkservers

A Node module for getting information from Ark: Survival Evolved game servers.

The arkservers module provides a few functions for getting information from the Web API for official servers for Ark: Survival Evolved.

Usage

npm install arkservers
const arkservers = require('arkservers');

arkservers.getVersion().then((version) => {
  console.log(version);
}).catch((reason) => console.log(`Error: ${reason}`));

The above code snippet prints (at the time of this writing)

281.110

See the examples/showPlayers.js example (which you can run with npm run example) for an example of the getServers() function, which returns an Array of entries as resolved by the Promises returned by Gamedig.query() (see Gamedig).

Documentation

See the JSDoc in the arkservers.js file.

License

arkservers is published under the MIT license.