@nxmix/readable-ansi

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Build Status](https://travis-ci.org/NXMIX/readable-ansi.svg)](https://travis-ci.org/NXMIX/readable-ansi) [![Coverage Status](h

Usage no npm install needed!

<script type="module">
  import nxmixReadableAnsi from 'https://cdn.skypack.dev/@nxmix/readable-ansi';
</script>

README

readable-ansi

styled with prettier Build Status Coverage Status npm

visualize a string that includes ansi codes.

Usage

install

npm i @nxmix/readable-ansi --save

example

import chalk from 'chalk'
import pretty from './src/readable-ansi'

pretty(chalk.red('red'))
// => (红)red(fD) color red/red/back to default foreground color

pretty('\x1b[1A\x1b[1B')
// => (↑¹)(↓¹) cursor-up/cursor-down

This project follows the all-contributors specification. Contributions of any kind are welcome!