1.0.1 • Published 1 year ago

xbox_games_played v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
1.0.1

1 year ago

1.0.0

1 year ago