Convert data data to hexadecimal with nodejs

var server = net.createServer (function (socket) {

)
  socket.on("data",function(data){
var buf =Buffer.from(data,"hex");
console.log("UE send:",buf);

});

< hr >

I use the Buffer.from statement to convert the data data into hexadecimal, but the information displayed in the sublime text3 console is incomplete, and the subsequent data is omitted by the ellipsis. Like this, what should I do to display all the results?

Apr.28,2022

Array.prototype.map.call(buf, (d => d.toString(16))).join(' ')
Menu