This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const got = require('got'); | |
const parseString = require('xml2js').parseString; | |
/** | |
* @typedef {Object} profile | |
* @property {string} search - The string used to search | |
* @property {string} id - User ID | |
* @property {string} name - username in proper camelCase (potentially same as search) | |
* @property {string} days - Total number of days watching | |
* @property {string} watching - Number of shows watching |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const got = require('got'); | |
const parseString = require('xml2js').parseString; | |
/** | |
* @typedef {Object} profile | |
* @property {string} search - The string used to search | |
* @property {string} id - User's SteamID64 | |
* @property {string} url - User search url | |
* @property {string} privacy - User's Privacy settings ["public", "private", "friendsonly"] | |
* @property {string} picturesmall - Small profile picture |