Jump to content

rage-tools - js framework


murka

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
  • Like 1
Link to comment
Share on other sites

Install: npm

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

async Function(): Promise<any>

 

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

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...