Following code is working fine.
const xPopWrapper = require("xlsx-populate-wrapper")
const path = require("path")
const filePath = path.resolve(filePathWithName)
const workbook = new xPopWrapper(filePath)
workbook.init().then(wb => {
console.log(wb.getSheetNames())
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…