SheetJS를 사용하여 json 데이터를 Excel로 손쉽게 변환해줍니다.
- Clone this repository.
- Copy and paste
jsonToExcel.js
file into your library directory in your project. - Add this code in your html file.
<script src="https://cdn.sheetjs.com/xlsx-0.20.0/package/dist/xlsx.full.min.js"></script> <script src="{path}/jsonToExcel.js"></script>
- Use the function
jsonToExcel(jsonData);
in javascript!