So I tried with the solution mentioned above and I think I'm pretty close.
I removed the entry in settings.js and in the function > Setup I entered ansi-to-html and used the variable ansiToHtml.
Now, the output it changed but I just get a string of numbers.
Please refer to Ansi to ascii or html which is what I was trying to do in the first place. So I'm not sure what is going on here.
const ansitext = msg.payload;
const Converter = ansiToHtml;
const convert = new Converter();
const htmltext = convert.toHtml(ansitext);
msg.payload = htmltext;
How my payload looks like "27914910927915154109200205187...." So, again, appreciative of any assistance. I feel I'm close..