ansi_up - A javascript library that converts text with ANSI terminal codes into colorful HTML

  •        4

ansi_up is a simple, easy to use library that provides a streaming API to transform text containing ANSI color escape codes into proper HTML. It can also transform any text that looks like a URL into an HTML anchor tag. This module is a single Javascript file with no dependencies. It is a UMD style module so it can be utilized in a browser, in node.js (CommonJS), or with AMD (require.js). The source code was compiled from TypeScript and its type description ships with the NPM. This code has been used in production since 2011 and is actively maintained.

https://github.com/drudru/ansi_up

Tags
Implementation
License
Platform

   




Related Projects

colorful - Terminal string styling done right, in Python :snake: :tada:


Note: on a Windows system it will install colorama as a dependency to ensure proper ANSI support. These days terminals not only support the ancient 8 ANSI colors but often they support up to 16 Million colors with true color. And if they don't support true color they might support the 256 ANSI color palette at least.

aha - Ansi HTML Adapter


Converts ANSI escape sequences of a unix terminal to HTML code. Aha has no dependencies except for a C compiler and make.

Bool.h: a boolean data type for ANSI C


ANSI C, up until the C99 standard, did not include a boolean data type. Bool.h is a single header file and offers a simple, highly customisable implementation using preprocessor macros. Several keyword sets are available based on several programming languages.

Ether DCAS


A new approach to a CAS. ANSI-C. Portable to All OSes which supports an ANSI-C compiler. Simplification, rearrangement, graphing, numeric evaluation, exporting to HTML and latex source.

node-bcat - A pipe to browser utility


node-bcat features auto scrolling (with enable/disable), ansi to html coloring (--ansi) and behavior and color customization.This module uses RC to manage its configuration, so in addition to command line arguments you may save your favorite configuration in .bcatrc.


ansiweather - Weather in your terminal, with ANSI colors and Unicode symbols


AnsiWeather is a Shell script for displaying the current weather conditions in your terminal, with support for ANSI colors and Unicode symbols.Weather data comes from the OpenWeatherMap free weather API.

pixterm - Draw images in your ANSI terminal with true color


PIXterm shows images directly in your terminal, recreating the pixels through a combination of ANSI character background color and the unicode lower half block element. If image has transparency, an optional matte color can be used for background. Also, you can specify a dithering mode; in which case, the image is rendered using block elements with different shades, or using standard ASCII characters in the same way. In dithering mode, the matte color is used to fill the background of the blocks or characters. The conversion process runs fast because it is parallelized in all CPUs.

node-charm - ansi control sequences for terminal cursor hopping and colors


Use ansi terminal characters to write colors and cursor positions.Charm objects pass along the data events from their input stream except for events generated from querying the terminal device.

colorama - Simple cross-platform colored terminal text in Python


Makes ANSI escape character sequences (for producing colored terminal text and cursor positioning) work under MS Windows. ANSI escape character sequences have long been used to produce colored terminal text and cursor positioning on Unix and Macs. Colorama makes this work on Windows, too, by wrapping stdout, stripping ANSI sequences it finds (which would appear as gobbledygook in the output), and converting them into the appropriate win32 calls to modify the state of the terminal. On other platforms, Colorama does nothing.

rainbow - Ruby gem for colorizing printed text on ANSI terminals


Rainbow is a ruby gem for colorizing printed text on ANSI terminals. It provides a string presenter object, which adds several methods to your strings for wrapping them in ANSI escape codes. These codes when printed in a terminal change text attributes like text color, background color, intensity etc.

chroma - A general purpose syntax highlighter in pure Go


NOTE: As Chroma has just been released, its API is still in flux. That said, the high-level interface should not change significantly.Chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc.

HtmGUI


C Ansi Code to allow developers to use a Web Browser as GUI for a console program, it write on a socket html widgets and read user choice through FORM SUBMIT. It include a little web server. Very compact as Html managment consist in 2 modules

blessed-contrib - Build terminal dashboards using ascii/ansi art and javascript


Build terminal dashboards using ascii/ansi art and javascript

escapes.js - Render ANSI art using HTML5 / JavaScript


Render ANSI art using HTML5 / JavaScript

jsTerm - ANSI capable JavaScript terminal emulator using HTML5 Canvas/WebSocket/node.js


ANSI capable JavaScript terminal emulator using HTML5 Canvas/WebSocket/node.js

ansicon - Process ANSI escape sequences for Windows console programs.


Process ANSI escape sequences for Windows console programs.

term-ansicolor - Ruby library that colors strings using ANSI escape sequences


Ruby library that colors strings using ANSI escape sequences

CELIB, WinCE ANSI C/POSIX library


CELIB is ANSI C/POSIX layer library for Windows CE devices developped by Rainer Keuchel. It allows to port existing software to run on handheld and pocket devices. This project is devoted to maintaining the library.

Bywater BASIC Interpreter


The Bywater BASIC Interpreter (bwBASIC) implements a large superset of the ANSI Standard for Minimal BASIC (X3.60-1978) and a significant subset of the ANSI Standard for Full BASIC (X3.113-1987) in C.

blockshow


blockshow[php] is a set of classes to handle ansi images (as used in mailbox systems). Probably the main feature is to convert an ansi to png in two different sizes.