ansi-match
v1.0.0
Published
Regular expression for matching ANSI escape codes
Readme
ansi-match
Regular expression for matching ANSI escape codes.
npm i ansi-matchUsage
const ansi = require('ansi-match')
const colors = '\x1B[31mred\x1B[39m'
console.log(colors.replace(ansi, '')) // => 'red'Simplified fork of ansi-regex.
License
MIT
