I needed access to Polyglot openings books and ECO data from TypeScript respectively. JavaScript. None of the existing libraries worked for me. So I ended up writing one myself: https://www.npmjs.com/package/chess-openings
The only runtime dependency is "int64-buffer", which is needed for 64-bit integers in JavaScript. I accidentally added "chess.js" as a runtime dependency but that can probably be removed for the next release.
The whole thing is a little bit of a hack, and test coverage is still too low, but it does the job for me. Maybe it's also useful for somebody else.
Polyglot reader and ECO data for TypeScript/JavaScript
Moderator: Ras
-
gflohr
- Posts: 72
- Joined: Fri Jul 23, 2021 5:24 pm
- Location: Elin Pelin
- Full name: Guido Flohr