{"size": 359, "ext": "js", "max_stars_repo_path": "01-read-file/index.js", "max_stars_repo_name": "Taneros/HTML-builder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "01-read-file/index.js", "max_issues_repo_name": "Taneros/HTML-builder", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "01-read-file/index.js", "max_forks_repo_name": "Taneros/HTML-builder", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.6153846154, "max_line_length": 80, "alphanum_fraction": 0.5933147632}
const fs = require('fs');
const path = require('path');
const filePath = path.join(__dirname, 'text.txt');
const stream = fs.createReadStream(filePath, { flags: 'r', encoding: 'utf8' });

stream.on('error', (err) => {
  console.log(`${err.message}`);
});

stream.on('data', (data) => {
  console.log(data.toString().replace(/[\n\r]+/gm, ''));
});
