npm.io
1.0.1 • Published 3 years ago

xbox_games_played

Licence
MIT
Version
1.0.1
Deps
2
Size
4 kB
Vulns
0
Weekly
0

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

Keywords