ansi-to
Version:
😹 export ANSI to HTML, SVG, PNG, w/ iTerm2 color support
45 lines (28 loc) • 1.95 kB
Markdown
# ANSI-to
> 😹 export ANSI color strings to various formats: HTML, SVG, PNG.
[](https://travis-ci.org/F1LT3R/ansi-to)
[](https://coveralls.io/github/F1LT3R/ansi-to?branch=master)
[](https://www.npmjs.com/package/ansi-to)
[](https://github.com/sindresorhus/xo)
ANSI-to takes a string of ANSI and converts it to various types of output. For example, this SVG:
[](ansi-to-svg-example.svg)
## Support
Support the development of ANSI-to by [becoming a patreon](https://patreon.com/bePatron?u=9720216).
<a href="https://patreon.com/bePatron?u=9720216"><img width="120" src="https://f1lt3r.io/content/images/2018/04/become_a_patron_button@2x.png"></a>
## Features
ANSI-to has the following plugins available:
- [SVG](https://github.com/F1LT3R/ansi-to-svg.git) - Export ANSI to Scalable Vector Graphics
- [PNG, JPG](https://github.com/F1LT3R/ansi-to-image) - Export ANSI to raster image (JPG, PNG)
- [<strike>HTML</strike>](https://github.com/F1LT3R/ansi-to-html) (coming soon)
Important: Do not use ANSI-to directly. Please use one of the above plugins.
**General Features**
- iTerm2 color support - [Base16 iTerm2 Color Schemes](https://github.com/martinlindhe/base16-iterm2)
- Use output in your `README.md` files
- Designed for use with [Chalk](https://github.com/chalk/chalk)
- Plugin architecture to build-your-own ANSI Parser
- Built-in default colors
- User can override colors
- Emoji support
- Powerline font support
## Why ANSI-to ?
ANSI-to is designed for use with ZTD development (Zero Technical Debt). ANSI-to provides a Markdown friendly way to include CLI output in your software documentation.