jchess
jchess copied to clipboard
Expose internals as utility library for PGN
I think it would be useful to use this package as a library for converting/parsing/manipulating PGN files. This should be independent of the browser, so it can work on the server side too, with nodejs.
What I would currently find very useful, is a utility to do...
$.chess(pgnData).toSquares()
Where .toSquares
is a function that converts from normal chess notation, into e2:e4
format.
Your package is perfectly capable of doing that, I have been able to concat the forward moves, with a little manipulation to get what I want, but only in the browsers, which means I can't easily load, manipulate and save data files as I could with nodejs.