sampinfoque
v1.2.6
Published
A simple and efficient package to fetch and parse SA-MP server information.
Downloads
192
Maintainers
Readme
SAMP INFO QUE NPM PACKAGE
A simple Node.js module to fetch and display information from SA-MP (San Andreas Multiplayer) servers.
Maping That How Its Work
📦 Installation
npm install sampinfoque
📋 Step-by-Step Guide To Get URL
To use the sampinfoque
npm package, you need a valid serverInfoUrl
from GS4u.net. Follow the steps below to obtain this URL:
Usage server.js
const SampInfo = require('sampinfoque');
const samp = new SampInfo({
serverInfoUrl: 'https://www.gs4u.net/en/s/80410.html',
});
const start = async () => {
const data = await samp.fetchServerInfo();
console.log(data);
}
start();
Output
📝 Notes
- Ensure that the server URL is accessible and correctly formatted.
- The module retrieves real-time information, so server status may vary.
🛠️ Troubleshooting
If you encounter issues while fetching server information:
- Verify that the server URL is correct.
- Check if the server is running and accessible.
- Make sure your network connection is stable.
🤝 Contributing
Feel free to open issues or submit pull requests for improvements and bug fixes!