I Built My First NPM Module! JS to Excel
web | 2021-11-20
๐ Why I Built This Module
While working on a project, I needed a simple way to export an HTML table to an Excel file using Node.js or JavaScript.
After searching, I realized:
- Most existing modules were too complex.
- Many were over-engineered for my needs.
- I just wanted something lightweight, easy to use, and straightforward.
So instead of forcing a complicated solution, I decided to build my own.
๐ฅ What It Does
@hawjeh/js-to-excel
is a small JavaScript utility that makes it super easy to:
- Export an HTML table to a real Excel
.xlsx
file. - Export JSON data to an Excel file.
It uses exceljs under the hood โ so it generates actual Excel files, not just CSVs pretending to be Excel!
๐ฆ Check It Out
-
GitHub Repository:
hawjeh/js-to-excel -
NPM Package:
@hawjeh/js-to-excel on npm
๐งช Live Demo / Sample Page
Want to see it in action?
Check out the sample page:
๐ View Sample
๐ Thanks for Checking It Out!
If you find it useful, a โญ๏ธ star on GitHub would mean a lot!
Feedback and contributions are very welcome โ I'm excited to keep improving it!
๐ What's Next?
Are you planning to also:
- Add support for cell styling (fonts, colors, borders)?
- Export multiple sheets?
- Or maybe a Node.js server-side version?