开发者社区> 镜像站> NPM> hhp-xml
hhp-xml
Poker HandHistory Parser for XML formatted histories.
Last updated 2 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hhp-xml 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.3.0                                ...           latest (2 years ago)

4 Versions

  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None