Constructors
constructor
- new PgnParser(emitGame, initHeaders?, maxBudget?): PgnParser
Parameters
- emitGame: ((game: Game<PgnNodeData>, err: undefined | PgnError) => void)
- (game, err): void
Returns void
- initHeaders: (() => Map<string, string>) = defaultHeaders
- (): Map<string, string>
Returns Map<string, string>
- maxBudget: number = 1_000_000
Methods
parse
- parse(data, options?): void
Returns void