0.1.1 • Published 5 years ago

@meszarosdezso/catchme v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Catch Me API Wrapper

Usage:

import CatchMe from '@meszarosdezso/catchme'

async function someAsyncFunctionBeacauseThereIsNoTopLevelAwaitYet() {
  const game = await CatchMe.fetchGame('7-digit-pin')

  if (game) {
    console.log(
      `Game#${game.pin} has ${Object.keys(game.players).length} players.`
    )
  } else {
    console.log("Couldn't find your game.")
  }
}
0.1.1

5 years ago

0.1.0

5 years ago