Jump to content

rage-tools - js framework


Recommended Posts

Install: npm

npm i @ragemp-tools/online@beta

const { peak, online, servers } = require('@ragemp-tools/online')

peak().then(console.log) // output: peak online
online().then(console.log) // output: online now
servers().then(console.log) // output: servers


// Definition;

async Function(): Promise<any>


Edited by murka
add npm i
Link to comment
Share on other sites

Install: npm

npm i @ragemp-tools/server@beta
const { server } = require('@ragemp-tools/server')
// output:
// {
//   name: 'Test Server',
//   gamemode: 'testplay',
//   url: 'mur.cx',
//   lang: 'ru',
//   players: 1109,
//   peak: 1109,
//   maxplayers: 1109
// }
// Definition;

async Function(): Promise<any>


Link to comment
Share on other sites

  • 2 weeks later...
14 часа назад, MaxRaimer сказал:

Это для чего? чтобы выводить информацию о каком-то сервере?

Зависит от разработчика. Это NPM пакет

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...