Show HN: Pretty-print your chess games using Prettier

Hi,

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.

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.

The plugin is currently near complete, even if the project is still at an early stage. It's usable, even if there might be some bugs.

Hope you find this useful. Comments and ideas are welcome. Have a nice weekend.


Comments URL: https://news.ycombinator.com/item?id=42594896

Points: 14

# Comments: 1

https://github.com/gmasclet/prettier-plugin-pgn

Établi 19d | 4 janv. 2025 à 15:50:10


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

Show HN: Open-source AI video editor

Hey HN community! I'm one of the lead devs of this project at fal.ai and we created an open source lightweight video editor powered by the latest media AI models. The main goal was to tackle some

23 janv. 2025 à 21:20:15 | Hacker news
Show HN: I built an active community of trans people online

A year ago I surveyed the internet and noticed there was only one popular space for trans and gender-non-conforming people to meet; Lex.

Lex is not well liked by its users. Its software feels he

23 janv. 2025 à 19:10:23 | Hacker news