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

  •        11

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

terminal-to-html - Converts arbitrary shell output (with ANSI) into beautifully rendered HTML

  •    Go

Terminal is a Go library for converting arbitrary shell output (with ANSI) into beautifully rendered HTML. See http://en.wikipedia.org/wiki/ANSI_escape_code for more information about ANSI Terminal Control Escape Sequences. It provides a single command, terminal-to-html, that can be used to convert terminal output via STDIN, as well as via a simple web server.

terminal - Converts arbitrary shell output (with ANSI) into beautifully rendered HTML

  •    Go

Terminal is a Go library for converting arbitrary shell output (with ANSI) into beautifully rendered HTML. See http://en.wikipedia.org/wiki/ANSI_escape_code for more information about ANSI Terminal Control Escape Sequences. It provides a single command, terminal-to-html, that can be used to convert terminal output via STDIN, as well as via a simple web server.

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

  •    Python

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

  •    C

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

  •    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.


kleur - The fastest Node.js library for formatting terminal text with ANSI colors~!

  •    Javascript

Toggle color support as needed; kleur assumes it's always enabled. Any kleur method returns a String (when invoked, not chained). It's up to the developer to pass the output to destinations like console.log, process.stdout.write, etc.

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

  •    Javascript

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.

shml - SHell Markup Language | Style Framework for The Terminal

  •    Shell

SHML is a shell framework for faster and easier script development. HTML has CSS, terminals have "ANSI/VT100 Control Sequences". SHML makes is easy to apply some style to your shell scripts without trying to remember that Yellow = \033[33m instead Yellow is $(color yellow).

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

  •    Shell

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

  •    Go

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

  •    Javascript

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

  •    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

  •    Ruby

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.

colorette - Node.js library for colorizing text using ANSI escape sequences

  •    Javascript

Colorette is a Node.js library for colorizing text using ANSI escape sequences. Import the style functions you want to use.

aurora - Golang ultimate ANSI-colors that supports Printf/Sprintf methods

  •    Go

Ultimate ANSI colors for Golang. The package supports Printf/Sprintf etc.

escapes.js - Render ANSI art using HTML5 / JavaScript

  •    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.

  •    C

Process ANSI escape sequences for Windows console programs.

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

  •    Ruby

Ruby library that colors strings using ANSI escape sequences