Showing
1 changed file
with
4 additions
and
2 deletions
| 1 | const xlsx = require( "xlsx" ); | 1 | const xlsx = require( "xlsx" ); |
| 2 | // 엑셀 파일을 가져오기 | 2 | // 엑셀 파일을 가져오기 |
| 3 | 3 | ||
| 4 | -const excelFile = xlsx.readFile( "컴퓨터공학과 권장이수 가이드라인.xlsx"); | 4 | +const excelFile = xlsx.readFile("./GuideLine/컴퓨터공학과 권장이수 가이드라인.xlsx"); |
| 5 | // 엑셀 파일의 첫번째 시트의 정보 추출 | 5 | // 엑셀 파일의 첫번째 시트의 정보 추출 |
| 6 | 6 | ||
| 7 | const sheetName = excelFile.SheetNames[0]; | 7 | const sheetName = excelFile.SheetNames[0]; |
| 8 | const firstSheet = excelFile.Sheets[sheetName]; | 8 | const firstSheet = excelFile.Sheets[sheetName]; |
| 9 | const jsonData = xlsx.utils.sheet_to_json(firstSheet); | 9 | const jsonData = xlsx.utils.sheet_to_json(firstSheet); |
| 10 | - | ||
| 11 | var first_first = []; | 10 | var first_first = []; |
| 12 | var first_second = []; | 11 | var first_second = []; |
| 13 | var second_first = []; | 12 | var second_first = []; |
| ... | @@ -58,5 +57,8 @@ fourth_second = fourth_second.filter(function(item) { | ... | @@ -58,5 +57,8 @@ fourth_second = fourth_second.filter(function(item) { |
| 58 | } | 57 | } |
| 59 | // null 값 제거 | 58 | // null 값 제거 |
| 60 | 59 | ||
| 60 | + | ||
| 61 | jason_to_arry() | 61 | jason_to_arry() |
| 62 | remove_null() | 62 | remove_null() |
| 63 | + | ||
| 64 | +console.log(first_first); | ... | ... |
-
Please register or login to post a comment