neilime/ansi-escapes-to-html

Convert ANSI escapes (terminal formatting/color codes) to HTML

v4.0.0 2024-06-29 08:47 UTC

This package is auto-updated.

Last update: 2024-11-15 09:40:49 UTC


README

ANSI escapes to Html

Continuous integration codecov Latest Stable Version Total Downloads License Sponsor

📢 ANSI escapes to Html is a php script that convert ANSI escapes (terminal formatting/color codes) to HTML markup:

\e[40;38;5;82m Hello \e[30;48;5;82m World

Became

<span
  style="font-weight:normal;text-decoration:none;color:rgb(95,255,0);background-color:Black;"
>
  Hello
</span>
<span
  style="font-weight:normal;text-decoration:none;color:Black;background-color:rgb(95,255,0);"
>
  World
</span>

Helping Project

❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !

Contributing

👍 If you wish to contribute to this project, please read the CONTRIBUTING.md file. Note: If you want to contribute don't hesitate, I'll review any PR.

Documentation

Installation

Usage

Code Coverage

PHP Doc

Development