Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 熱海
- codebuild
- CSV
- 三井住友カード
- documentdb
- Python
- pyenv
- Selenium
- 카마츠루
- vba
- 체코
- 태국
- 釜つる
- duckdb
- 아타미
- javascript
- 페이페이
- terraform
- PostgreSQL
- 뮌헨
- JenkinsFile
- typescript
- 메르페이
- PayPay
- node.js
- react.js
- 미츠이 스미토모
- local
- 방콕
- 프라하
Archives
- Today
- Total
목록Excel을 json으로 바꾸기 (1)
도쿄사는 외노자

node.js 툴에서 excel파일을 json으로 불러와, 데이터를 만들어야 했다. 일단 원본이 되는 엑셀 파일은 다음과 같다. 이걸 convert-excel-to-json으로 불러와서 재구성한다. 코드는 다음과 같다. const excelToJson = require('convert-excel-to-json'); // 엑셀 파일 const input_form_file = '../data/example.xlsm'; function getDataSheet(){ const excel_sheets = excelToJson({ sourceFile: input_form_file, header: { rows: 3 // 필요없는 줄을 자를 수 있다 }, // 원하는 시트만 골라서 뽑아내기 sheets: ['stock..
Tech/JavaScript
2019. 12. 17. 12:09