0.3.0 • Published 7 years ago

hhp-xml v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

hhp-xml build status

Poker HandHistory Parser for XML formatted histories.

const fs = require('fs')
const { parseHands } = require('hhp-xml')
const xml = fs.readFileSync('iPokerHistory.xml', 'utf8')
const { parsedHands, errors, count } = parseHands(xml)

Installation

npm install hhp-xml

API

canParse

Determines if any of the parsers can parse the passed XML hand.

Parameters

Returns Boolean true if it knows how to parse this xml

parseHands

Parses hands for Poker rooms that save them in xml format. Currently only iPoker is supported.

The structure of the returned hand objects is the same as for hhp.

Parameters

Returns object parsed hands and errors encountered: { parsedHands: Array, errors: Array, count: Number }

License

MIT

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago