How can I convert the buffer to a string?

Good afternoon, after converting from a buffer, I get this kind of
prntscr.com/hoq4rw
How to remove this?
June 10th 19 at 14:22
1 answer
June 10th 19 at 14:24
let newBuff = Buffer.from('New String');
console.log(newBuff.toString('utf8')); // New String


Another way StringDecoder

var StringDecoder = require('string_decoder').StringDecoder;
var d = new StringDecoder('utf8');
var b = Buffer('abc');

console.log(b); // <buffer 61 62 63>
console.log(d.write(b)); // abc</buffer>

Find more questions by tags Node.jsJavaScript