@nxmix/readable-ansi
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i @nxmix/readable-ansi

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

23.6 kB

Total Files

15

Last publish

Collaborators

  • jacobbubu
  • nxdeploy
  • zhengle