pokr
description
This library simulates poker hands being played and gives the winner, for instance :
const pokr = ; const deck = pokr;const hand = pokr;const hand2 = pokr; console; // [ 'Jd', 'Th' ]console; // [ 'Qd', '5h' ] console; // { winner: 'player2', hand: { cards: [ '2c', '2s', '2h', '2d', 'Qd' ], hand: 'fourOfAKind' } }