3 lines
89 B

export default function strlen (str) {
return str.replace(/\x1b[^m]*m/g, '').length;
}