Strip ANSI escape codes
$ npm install strip-ansi
const stripAnsi = require('strip-ansi'); stripAnsi('\u001B[4mUnicorn\u001B[0m'); //=> 'Unicorn'
MIT