1.0.1 • Published 3 years ago
xbox_games_played v1.0.1
xbox_games_played
A function to find the number of games played from a Gamertag
Module installation
With NPM
npm i xbox_games_playedWith Yarn
yarn add xbox_games_playedWith PNPM
pnpm add xbox_games_playedExample 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