xbox_games_played
v1.0.1
Published
A function to find the number of games played from a Gamertag
Downloads
2
Readme
xbox_games_played
A function to find the number of games played from a Gamertag
Module installation
With NPM
npm i xbox_games_played
With Yarn
yarn add xbox_games_played
With PNPM
pnpm add xbox_games_played
Example code
Importing the module
const gamesPlayed = require("xbox_games_played");
Retrieving the number of games played
gamesPlayed
.search("hello")
.then((gamesPlayed) => {
console.log(gamesPlayed); // -> 0
})
.catch((reason) => {
console.error(reason);
});
Retrieving the number of games played with asynchronous code
console.log(await gamesPlayed.search("hello")); // -> 0