ansi-to

1.5.1 • Public • Published

ANSI-to

😹 export ANSI color strings to various formats: HTML, SVG, PNG.

Build Status Coverage Status NPM Version XO code style

ANSI-to takes a string of ANSI and converts it to various types of output. For example, this SVG:

Lead Image

Support

Support the development of ANSI-to by becoming a patreon.

Features

ANSI-to has the following plugins available:

  • SVG - Export ANSI to Scalable Vector Graphics
  • PNG, JPG - Export ANSI to raster image (JPG, PNG)
  • 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
  • Use output in your README.md files
  • Designed for use with 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.

Package Sidebar

Install

npm i ansi-to

Weekly Downloads

23

Version

1.5.1

License

MIT

Unpacked Size

8.02 kB

Total Files

6

Last publish

Collaborators

  • f1lt3r