Not sure if it is bug or some hidden feature, but code below doesn't return anything if it is not in debugging. It supposed to return Hex buffer.
var fs = require("fs");
var d = fs.readFileSync("app.js");
console.log(d);
If I set break point on second line and debug - console.log prints buffer value.
Also all works if console.log(d.toString()).
I am developing in VSCode - may be bug with IDE?
Same code run as node app.js, outputs HEX buffer.
Any idea?