get-steam-user

Retrieves the local steam users and steam ids on a windows machine

Usage no npm install needed!

<script type="module">
  import getSteamUser from 'https://cdn.skypack.dev/get-steam-user';
</script>

README

get-steam-user

retrieves a list of steam users and their steam ids from the local machine. perfect for desktop apps looking to get information about a steam user.

💿 Installation

npm i get-steam-user

📖 Usage

getUserInfo

[returns an array of users with usernames and steamids]

var gsu = require('get-steam-user');
gsu.getUserInfo(function(user_info){
   console.log(user_info); 
});

response

[ { steamid: 'xxxxxxxxxxxx', username: 'usename' } ]

getSteamId

[returns an array of users steamids]

var gsu = require('get-steam-user');
gsu.getSteamId(function(steamids){
   console.log(steamids); 
});

response

[ 'xxxxxxxxxxxx' ] //xs being the steam id

getUsername

[returns an array of usernames]

var gsu = require('get-steam-user');
gsu.getUsername(function(usernames){
   console.log(usernames); 
});

response

[ 'a_username' ]