ansitohtml

A library that converts a string with ANSI CSI SGR codes (colours and such) into a string with HTML tags

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-08-30 07:10

Authors

  • PMunch

Installation

nimble install ansitohtml
choosenim install ansitohtml
git clone https://github.com/PMunch/ansitohtml

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
ansitohtml - - - - - - -

Dependencies

Package Version Optional
nim >= 0.20.0 No
ansiparse - No

Source

Repository https://github.com/PMunch/ansitohtml
Homepage https://github.com/PMunch/ansitohtml
Registry Source nimble_official

README

ansitohtml

This small Nim library will take a string with ANSI escape codes and return a string where they are replaced by HTML span tags with style attributes. It currently supports all the various colour formats of the ANSI standard, along with styles like underlining and italics.