I'm trying to read *.xlsx file, convert it to json and write to another file.
The thing is, when i'm trying to read *.xlsx file using fs.readFileSync method, i'm getting weird symbols as a result. Did anybody ever faced that? how to solve it?
Code is something like this:
const inputFilePath = path.join(__dirname, 'csv/123.xlsx')
const fileContent = fs.readFileSync(inputFilePath, 'utf-8')
console.log(fileContent)
running it with nodemon index.js
