{"by":"gmasclet","descendants":10,"id":42594896,"kids":[42657712,42595370,42598681,42597044,42595532,42595600],"score":103,"text":"Hi,<p>As an enthusiast chess player, I like to manage my games and my opening repertoire as a set of PGN files stored in a Git repository (PGN is a text file format for recording chess games). So I wanted a way to pretty-print PGN files using a CLI and integrating in my editor.<p>Today, it looks like most people use GUI-based software. So I decided to create a Prettier plugin that formats PGN files. Prettier is a well-known pretty-printer in the Node.js ecosystem, used to ensure consistent source code formatting in software projects. One upside of implementing this PGN formatter as a Prettier plugin is that it benefits from its editor integration.<p>The plugin is currently near complete, even if the project is still at an early stage. It&#x27;s usable, even if there might be some bugs.<p>Hope you find this useful. Comments and ideas are welcome. Have a nice weekend.","time":1736001472,"title":"Show HN: Pretty-print your chess games using Prettier","type":"story","url":"https://github.com/gmasclet/prettier-plugin-pgn"}