Skip to content

Commit

Permalink
Excel パーサーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
naogify committed Dec 13, 2024
1 parent 7ad0540 commit e8d3717
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/xlsx2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ const parse = (filePath) => {
const sheetName = workbook.SheetNames[0];
const sheet = workbook.Sheets[sheetName];
const data = XLSX.utils.sheet_to_json(sheet);

// ダウンロードコード と テストTippecannoeコードを除外
data.forEach((d) => {
delete d['ダウンロードコード'];
delete d['テストTippecannoeコード'];
});
return data;
}

Expand Down

0 comments on commit e8d3717

Please sign in to comment.