Any-Text NPM
var reader = require('any-text');
reader.getText(`path-to-file`).then(function (data) {
console.log(data);
});
Important Ibis
var reader = require('any-text');
reader.getText(`path-to-file`).then(function (data) {
console.log(data);
});