@creativenull/pokerjs@2.2.0
latest
creativenull/pokerjsA simple poker library written in TypeScript.
This package works with Cloudflare Workers, Node.js, Deno, BrowsersIt is unknown whether this package works with Bun




JSR Score
64%
Published
a year ago (2.2.0)
Poker.js
A simple card poker library written in TypeScript.
Installation
npm install @creativenull/pokerjs
Deno
import { Poker } from "jsr:@creativenull/pokerjs@2";
Test
npm run test
Usage
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);
Add Package
deno add jsr:@creativenull/pokerjs
Import symbol
import * as pokerjs from "@creativenull/pokerjs";
Import directly with a jsr specifier
import * as pokerjs from "jsr:@creativenull/pokerjs";
Add Package
pnpm i jsr:@creativenull/pokerjs
pnpm dlx jsr add @creativenull/pokerjs
Import symbol
import * as pokerjs from "@creativenull/pokerjs";
Add Package
yarn add jsr:@creativenull/pokerjs
yarn dlx jsr add @creativenull/pokerjs
Import symbol
import * as pokerjs from "@creativenull/pokerjs";
Add Package
vlt install jsr:@creativenull/pokerjs
Import symbol
import * as pokerjs from "@creativenull/pokerjs";
Add Package
npx jsr add @creativenull/pokerjs
Import symbol
import * as pokerjs from "@creativenull/pokerjs";
Add Package
bunx jsr add @creativenull/pokerjs
Import symbol
import * as pokerjs from "@creativenull/pokerjs";