tm-text

JSON →
library 1.1.0 ·javascript
verified Jun 4, 2026

tm-text is a library for parsing and formatting Trackmania and ManiaPlanet game text, converting color codes and formatting tokens (e.g., $f00 for red, $o for bold) into HTML, human-readable strings, or tokenized structures. The current version is 1.1.0, released on npm. It supports both ESM and CommonJS, ships TypeScript types, and is actively maintained on GitHub by Brainshaker95. Compared to alternatives, it provides a simple interface with functions like humanize, htmlify, tokenize, and blockify, covering all documented tokens including color codes, bold, italic, links, and shadow.