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

  •        6

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

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.

wolfssl - wolfSSL (formerly CyaSSL) is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud

  •    C

The wolfSSL embedded SSL library (formerly CyaSSL) is a lightweight SSL/TLS library written in ANSI C and targeted for embedded, RTOS, and resource-constrained environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating environments as well because of its royalty-free pricing and excellent cross platform support. wolfSSL supports industry standards up to the current TLS 1.3 and DTLS 1.3 levels, is up to 20 times smaller than OpenSSL, and offers progressive ciphers such as ChaCha20, Curve25519, NTRU, and Blake2b. User benchmarking and feedback reports dramatically better performance when using wolfSSL over OpenSSL. There are many reasons to choose wolfSSL as your embedded SSL solution. Some of the top reasons include size (typical footprint sizes range from 20-100 kB), support for the newest standards (SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3, DTLS 1.0, and DTLS 1.2), current and progressive cipher support (including stream ciphers), multi-platform, royalty free, and an OpenSSL compatibility API to ease porting into existing applications which have previously used the OpenSSL package. For a complete feature list, see Section 4.1.

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

CELIB, WinCE ANSI C/POSIX library

  •    C

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.