ts-xlsx-export
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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..

Installation

    npm i ts-xlsx-export

Utilization

    import { tsXLXS } from 'ts-xlsx-export';
 
    tsXLXS().exportAsExcelFile(jsonData).saveAsExcelFile(fileName);

Function details

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

Browser Support

This library has been tested with the following browsers:

  • Chrome
  • IE 11
  • FireFox

Package Sidebar

Install

npm i ts-xlsx-export

Weekly Downloads

330

Version

1.0.1

License

MIT

Unpacked Size

2.76 kB

Total Files

4

Last publish

Collaborators

  • daniele_baggio