Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/plugins/web-interface/static/js/helpers.js>ansiToHtml

Universal process manager built in Deno
Go to Latest
function ansiToHtml
import { ansiToHtml } from "https://deno.land/x/pup@1.0.0-rc.15/plugins/web-interface/static/js/helpers.js";

Converts ANSI color codes in text to corresponding HTML. Wraps colored sections of text in tags with appropriate styles. Replaces line breaks with for HTML display.

Parameters

ansiText
  • Text containing ANSI color codes.