murka Posted August 10, 2019 Share Posted August 10, 2019 (edited) 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 August 10, 2019 by murka add npm i Link to comment Share on other sites More sharing options...
murka Posted August 10, 2019 Author Share Posted August 10, 2019 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> Link to comment Share on other sites More sharing options...
MaxRaimer Posted August 20, 2019 Share Posted August 20, 2019 (edited) Это для чего? чтобы выводить информацию о каком-то сервере? Edited August 20, 2019 by MaxRaimer ю добавил в слове "информацию" Link to comment Share on other sites More sharing options...
murka Posted August 20, 2019 Author Share Posted August 20, 2019 14 часа назад, MaxRaimer сказал: Это для чего? чтобы выводить информацию о каком-то сервере? Зависит от разработчика. Это NPM пакет Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now