ansi-match

1.0.0 • Public • Published

ansi-match

Regular expression for matching ANSI escape codes.

npm i ansi-match

Usage

const ansi = require('ansi-match')

const colors = '\x1B[31mred\x1B[39m'
console.log(colors.replace(ansi, '')) // => 'red'

Simplified fork of ansi-regex.

License

MIT

Dependents (2)

Package Sidebar

Install

npm i ansi-match

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.22 kB

Total Files

4

Last publish

Collaborators

  • lukks