XLSX-Renderer
Github: https://github.com/Siemienik/XToolset/.../xlsx-renderer
Introduction
XLSX-Renderer is a JavaScript / TypeScript package specialized in generating Excel files with minimum code and maximum flexibility. It satisfies both assumptions by using a template engine implemented by design. Thus you don't need to write tons of code to set up cells styles, fonts or borders, etc. Instead of that, it is enough to create a template in MS Excel (or use another spreadsheet manager). Of course, it needs to follow some guidelines and syntax principles. About that and how to customize the renderer, you can read more in the following sections of the documentation.
Example use cases
-
Are you feeling nervous when the business wants to change the invoice layout? Now you may say "bye-bye" to changing thousands of line codes. It is enough to update
invoice-template.xlsx
and use with this tool. -
Do you need generate complex report? Imagine that it willn't be terrible too much. Commonly generating files requires to write a lot of lines of code (for instance get cell A1, set font bold, border solid, test etc.). With this tool you may use Microsoft Excel to fancy create
complex-report-template.xlsx
and mix it with your data by usingxlsx-renderer
. -
Did the boss said that it is only a little change in
sales-report.xlsx
, but it isn't? Withxlsx-renderer
you mustn't change any line of code, just update yourtemplate.xlsx
How it works
It consumes a template file which is common Excel file, then add yours data called view model. Blend it and done, the output is the desirable file.
Curriculum
Chapters included in this section:
Worth to know
- There is a possibility to import data from XLSX (also from generated) files, read more about XLSX-Import,
- GitHub repository: https://github.com/Siemienik/XToolset.
Support
If any help needed, just feel free to create a discussions. We will be really thankful for added links into stackoverflow topics if exists.
To report a bug please create an issue.
We are ready to provide paid support or consulting, in order that please contact me: [email protected] or [email protected].
Compatible with
TypeScript | JavaScript | NodeJS | React | Angular | Vue |
---|---|---|---|---|---|
✅ NodeJS
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
---|---|---|---|---|---|---|---|---|---|---|---|
🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 |
✅ Browsers
Chrome | Firefox | Safari |
---|---|---|
🟢 | 🟢 | 🟢 |
Topic about using XLSX-Renderer in a browse.r.
License
Whole XToolset is created by the community with Siemienik's leadership.
Many thanks to all contributors.
This software licensed by MIT.