chess-pgn
chess-pgn is a library which includes tools for working with Portable Game Notation (PGN).
Installation
npm install chess-pgn
Example usage
const pgn = ; console;// [Title "Example pgn"]// [Description "Shows how to add tags, moves, variations and comments"]//// 1. e4 {king's pawn} (1. d4 Nf6 (1... d5)) 1... e5 (1... c5) *