1.0.0 • Published 6 years ago

readable-ansi v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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!