UNPKG

@gameroom/cli

Version:

A command line tool for Gameroom

5 lines (4 loc) 169 B
module.exports = (string) => { if (!string) return 0 return string.replace(/[\u001b\u009b][[()#?]*(?:[0-9]{1,4}(?:[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '').length }