All Projects → chalk → strip-ansi-stream

chalk / strip-ansi-stream

Licence: MIT license
Strip ANSI escape codes

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to strip-ansi-stream

Chalk
🖍 Terminal string styling done right
Stars: ✭ 17,566 (+54793.75%)
Mutual labels:  console, color, ansi, ansi-escape-codes, strip-ansi
yachalk
🖍️ Terminal string styling done right
Stars: ✭ 131 (+309.38%)
Mutual labels:  console, color, ansi, ansi-escape-codes
go-color
A lightweight, simple and cross-platform package to colorize text in terminals
Stars: ✭ 65 (+103.13%)
Mutual labels:  console, color, ansi
leeks.js
Simple ANSI styling for your terminal
Stars: ✭ 12 (-62.5%)
Mutual labels:  console, color, ansi
Rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨
Stars: ✭ 1,080 (+3275%)
Mutual labels:  console, color, ansi
Mordant
Full-featured text styling for Kotlin command-line applications
Stars: ✭ 382 (+1093.75%)
Mutual labels:  console, color, ansi
concolor
Colouring template strings using tags with annotations 🎨
Stars: ✭ 35 (+9.38%)
Mutual labels:  console, color, ansi
ansicolor
A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
Stars: ✭ 91 (+184.38%)
Mutual labels:  console, ansi, ansi-escape-codes
pytermgui
Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
Stars: ✭ 1,270 (+3868.75%)
Mutual labels:  console, ansi, ansi-escape-codes
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (-25%)
Mutual labels:  console, color, ansi
paper-terminal
Print Markdown to a paper in your terminal
Stars: ✭ 33 (+3.13%)
Mutual labels:  console, color, ansi
ansiart2utf8
Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8. Escape codes and line endings are processed for terminal friendliness.
Stars: ✭ 32 (+0%)
Mutual labels:  console, ansi, ansi-escape-codes
Gradient String
🌈 Beautiful color gradients in terminal output
Stars: ✭ 476 (+1387.5%)
Mutual labels:  console, color
Colorful
Terminal string styling done right, in Python 🐍 🎉
Stars: ✭ 456 (+1325%)
Mutual labels:  console, ansi
Termenv
Advanced ANSI style & color support for your terminal applications
Stars: ✭ 555 (+1634.38%)
Mutual labels:  console, ansi
Closestx11color
Find the closest xterm-256 colors (between 0 and 255) to an arbitrary HTML hexa color (e.g. #ABCDEF)
Stars: ✭ 13 (-59.37%)
Mutual labels:  console, color
Sadconsole
A .NET ascii/ansi console engine written in C# for MonoGame and XNA. Create your own text roguelike (or other) games!
Stars: ✭ 853 (+2565.63%)
Mutual labels:  console, ansi
Crossterm
Cross platform terminal library rust
Stars: ✭ 1,023 (+3096.88%)
Mutual labels:  console, color
Crossline
A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
Stars: ✭ 53 (+65.63%)
Mutual labels:  console, color
Colorette
Easily set the color and style of text in the terminal.
Stars: ✭ 1,047 (+3171.88%)
Mutual labels:  console, ansi

strip-ansi-stream

Strip ANSI escape codes

Install

$ npm install strip-ansi-stream

Usage

import stripAnsiStream from 'strip-ansi-stream';

const stream = stripAnsiStream();

stream.on('data', data => {
	console.log(data);
	//=> 'Unicorn'
	//=> 'bar'
})

stream.write('\u001B[4mUnicorn\u001B[0m');
stream.end('\u001B[0;33;49;3;9;4mbar\u001B[0m');

API

stripAnsiStream()

Returns a Transform stream that strips ANSI escape codes.

Related

  • strip-ansi - Non-streaming version of this module
  • has-ansi - Check if a string has ANSI escape codes
  • ansi-regex - Regular expression for matching ANSI escape codes
  • chalk - Terminal string styling done right
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].