1.0.3 • Published 3 years ago
xbox_gamerscore v1.0.3
xbox_gamerscore
A function to find the Gamerscore from a Gamertag
Module installation
With NPM
npm i xbox_gamerscoreWith Yarn
yarn add xbox_gamerscoreWith PNPM
pnpm add xbox_gamerscoreExample code
Importing the module
const gamerScore = require("xbox_gamerscore");Retrieving the gamerScore
gamerScore
.search("hello")
.then((gameScore) => {
console.log(gameScore); // -> 515
})
.catch((reason) => {
console.error(reason);
});Retrieving the gamerScore with asyncronous code
console.log(await gamerScore.search("hello")); // -> 515