
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.
game-detect
Advanced tools
game-detect is a node package specifically for detecting what game a user is playing, for use cases such as showing game activity or presence in a chatting service or app.
Support for Windows, MacOS, and Linux have been implemented, however Windows & MacOS support have not been tested yet.
npm i game-detect
import detectCurrentGame from 'game-detect';
console.log(await detectCurrentGame(false));
/* =>
{
detectionid: 'gamejolt-215221',
appid: 0,
gamejoltid: 215221,
gamejolturl: 'https://gamejolt.com/games/hero-as-a-hobby/215221',
name: gameDetails.title,
description: '',
requiredAge: 13,
developers: ['fishwind'],
publishers: ['fishwind'],
cover: 'https://i.gjcdn.net/data/games/3/221/215221/1',
icon: 'https://i.gjcdn.net/data/games/3/221/215221/screenshot_5 - copy-iwrwyawc.png',
}
*/
Returns information about the game the user is playing or null if they aren't playing one or it cannot be detected.
noHTTP
Type: boolean
Default: False
Whether or not to send HTTP requests to fill in information that isn't provided by the game's platform directly on the user's system. (recommended if you are just checking if the user's current game has changed)
| Platform | Windows | MacOS | Linux |
|---|---|---|---|
| Steam | ❔ | ❔ | ✔️ |
| Itch.io | ❔ | ❔ | ✔️ |
| Gamejolt | ❔ | ❔ | ✔️ |
| Lutris | ❌ | ❌ | ✔️ |
| Roblox | ✔️ | ✔️ | ✔️ |
| Minecraft | ✔️ | ✔️ | ✔️ |
FAQs
A node.js library for detecting what game the user is playing
We found that game-detect 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.