1.0.4 • Published 5 years ago

get-steam-user v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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' ]