convert buffer to json code example
Example: format buffer to utf8
const fs = require('fs');
const readStream = fs.createReadStream('pathTotheFile', { encoding: 'utf8'});
const fs = require('fs');
const readStream = fs.createReadStream('pathTotheFile', { encoding: 'utf8'});