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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i ansi-match

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.22 kB

Total Files

4

Last publish

Collaborators

  • lukks