0.1.1 • Published 5 years ago
@meszarosdezso/catchme v0.1.1
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.")
}
}