
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
source-server-query
Advanced tools
A library for querying Source servers using the Source Query Protocol. Execute A2S_INFO, A2S_PLAYER, and A2S_RULES server queries. Responses will be returned in an array or object depending on the request. All methods are asynchronous resulting in a clean and easy way to query many servers one by one should it be necessary.
You can add this module by running:
npm i source-server-query
and then use it:
const { info, players, rules, close } = require("source-server-query");
Each method: info, players, rules, uses the same arguments of an address and port. The port is the UDP query port, not the game port.
info("9.9.9.9", 27015, timeout).then(console.log);
players("9.9.9.9", 27015, timeout).then(console.log);
rules("9.9.9.9", 27015, timeout).then(console.log);
The methods are promise based, so the await keyword can be used aswell. You can also close the client at any time.
close();
For more information about each query request, as well as general source server information, see index.d.ts.
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
Query Source game servers using the Source Query Protocol.
The npm package source-server-query receives a total of 62 weekly downloads. As such, source-server-query popularity was classified as not popular.
We found that source-server-query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.