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


๐Ÿงช 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?