1.0.15 • Published 3 years ago

cfx-resolve v1.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

CFX-Resolve

Resolve CFX token to host informations for FiveM.

CDN

  • Call to your page if you want to use on web version (https://cdn.jsdelivr.net/npm/cfx-resolve@latest/cfx-resolve.js)
  • Call to your application if you want to use on Node (require("cfx-resolve") with npm i cfx-resolve or yarn add cfx-resolve)

Usage

const { resolve } = require("cfx-resolve"); //if you are on Node 

resolve("5odg9a", { //cfx token ("5odg9a" or https://cfx.re/join/5odg9a)
    "info": true, //additional returns server informations
    "players": true, //additinal returns server players list
    "geo": true //additional returns IP geo location
}).then(data => {
    console.log(data);
}).catch(err => {
    console.log("[ERROR] "+err.message);
})

License

Distributed under the Apache-2.0 License. See LICENSE for more information.

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago