hhp-render
Renders PokerHands parsed with hhp to different formats, i.e. PokerStars and message boards.
Usage
hhp-render <source-dir> <target-dir> --noreveal
Converts hand histories inside source dir to
PokerStars format and writes them to the target dir.
If --noreveal is NOT supplied revealed hands will be
included as mucked hands.
const parse = require('hhp')
const { renderPokerStars } = require('hhp')
const txt = fs.readFileSync('ignition-hand.txt', 'utf8')
const hand = parse(txt)
const rendered = render(hand)
console.log(rendered) // prints hand in PokerStars format
Status
Renders to PokerStars at this point.
Installation
npm install hhp-render
API
renderPokerStars
Renders an hhp parsed hand in PokerStars format.
Parameters
-
hand
Object the parsed hand -
$0
Object options-
$0.muckRevealed
Object? iftrue
includes cards revealed via Ignition as mucks (optional, defaulttrue
)
-
Returns string hand rendered to be importable as PokerStars hand
License
MIT