XLSX Generator
- A Excel File Read and Write Module implemented base on exceljs module
How to use
Install
npm i xlsx-generator
Import
;
Init Instance
const excel = ;
Feature
Set WorkBook Creator
const excel = ;// parameter as a string or nullexcel;
Write Data And Generate Excel File
const excel = ;// Example Headerconst _header = header: 'Id' key: 'id' width: 10 header: 'Name' key: 'name' width: 25 header: 'Image' key: 'image' width: 50 ;// Example Dataconst _data = id: 'test1' name: 'testUser1' image: 'file/file/test1.jpg' id: 'test2' name: 'testUser2' image: 'file/file/test2.jpg' id: 'test3' name: 'testUser3' image: 'file/file/test3.jpg' id: 'test4' name: 'testUser4' image: 'file/file/test4.jpg' ; // with fileName and sheetNameexcel; // without fileName and sheetNameexcel;
Read File From data and output as JSON Format
const excel = ; excel;
LICENCE
NO LICENCE FREE TO CHANGE OR USE
Author
- 11