@nxmix/readable-ansi
v1.0.1
Published
[![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
Downloads
6
Readme
readable-ansi
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!