11 lines
244 B
JavaScript
11 lines
244 B
JavaScript
const excel2json = require("excel2json-xlsx")
|
|
const data = excel2json(
|
|
{
|
|
inputFile: "data/data.xlsx",
|
|
mapperFile: "data/config.json",
|
|
outputFile: "data.json",
|
|
sheetName: "Sheet2",
|
|
}
|
|
)
|
|
|
|
console.log(data) |