const XLSX = require("xlsx") ; function excelToJson (excelFile){ const sheetName = excelFile["SheetNames"][0]; const sheetData = excelFile["Sheets"][sheetName]; const keysList = Object.keys(sheetData); const data = []; let contentKey = [] let contentList = []; // 목차 list let temp = {}; let before = 2; for (let i=0 ; i < keysList.length; i++){ if (keysList[i].indexOf("!")){ const regex = /[^0-9]/..