A simple card poker library written in TypeScript.
npm install @creativenull/pokerjs
import { Poker } from "jsr:@creativenull/pokerjs@2";
npm run test
import { Poker } from "@creativenull/pokerjs";
const poker = new Poker();
const player1 = { id: "player1", hand: poker.getPlayerHand() };
const player2 = { id: "player2", hand: poker.getPlayerHand() };
const winner = poker.winner([player1, player2]);
console.log(winner);