hhp v1.1.1
hhp 
Poker HandHistory Parser
Status
Parses PokerStars, Ignition, PartyPoker and Pacific (888) Hold'em hands, tourneys, SNGs and Cash.
Installation
npm install hhpAPI
parseHand
Parses PokerHand Histories as output by the given online Poker Rooms. Autodetects the game type and the PokerRoom.
The parsed hands can then be further analyzed with the hha module.
As an example this hand is parsed into this object representation.
Parameters
inputstring the textual representation of one poker hand as written to the HandHistory folderoptsobject? various options
Returns object representation of the given hand to be used as input for other tools like hha
canParse
Determines if any of the parsers can parse the passed hand(s).
Parameters
inputString to parse
Returns Boolean true if it knows how to parse this text
extractHands
Extracts all hands from a given text file.
Parameters
txtstring the text containing the hands
Returns Array<Array> an array of hands, each hand split into lines
parseHands
Parses multiple hands from a given text.
Parameters
inputstring the textual representation of the poker hands as written to the HandHistory folderoptsobject? various options, passed along toparseHand
Returns object parsed hands and errors encountered: { parsedHands: Array, errors: Array, count: Number }
License
MIT