1.0.10 • Published 5 years ago

csgo-current-steamid v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

csgo-current-steamid

A NodeJS native addon to retrieve the SteamID64 of the current logged Steam Account that owns CSGO.

Usage

const csgoCurrentSteamId = require("csgo-current-steamid");

try {
  const steamId = csgoCurrentSteamId();
  console.log(steamId);
} catch (error) {
  // An error may occurs if Steam is not running or the current Steam account doesn't own CSGO.
}

Build

  1. Download the Steamworks SDK
  2. Extract it into the project's root folder and rename it to steamworks_sdk.
  3. yarn (it will build the binary using node-gyp).

Notes

It works only if you have CSGO in your Steam Library, otherwise it will throw an error. If you want to use it with an other game, fork the project and change the appId in the file steam_appid.txt with the one of your choice.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.10

5 years ago

1.0.0

5 years ago