Export Excel Library
npm install ts-xlsx-export
This library allows you to export json data in Excel. It has been written in typescripte so it can be used in all projects using typescript. For example, projects with Angular. The installation and use are very simple..
``Javascript`
npm i ts-xlsx-export
`Javascript
import { tsXLXS } from 'ts-xlsx-export';
tsXLXS().exportAsExcelFile(jsonData).saveAsExcelFile(fileName);
``
| Function | Desciption | Params |
|---|---|---|
| tsXLXS() | the first function called that allow to instance the library | Null |
| exportAsExcelFile() | this function prepares json data to be downloaded in excel format | Object Array |
| saveAsExcelFile() | function that allow to download and save file, your can pass the param for the name of the file | String |
This library has been tested with the following browsers:
* Chrome
* IE 11
* FireFox