xbox_gamerscore
v1.0.3
Published
A function to find the Gamerscore from a Gamertag
Downloads
2
Readme
xbox_gamerscore
A function to find the Gamerscore from a Gamertag
Module installation
With NPM
npm i xbox_gamerscore
With Yarn
yarn add xbox_gamerscore
With PNPM
pnpm add xbox_gamerscore
Example 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