Strip ANSI escape codes
$ npm install --save strip-ansi
var stripAnsi = require('strip-ansi'); stripAnsi('\u001b[4mcake\u001b[0m'); //=> 'cake'
MIT © Sindre Sorhus