title: Need to Export tabular data into Excel (xlsx) format by javascript
body: <p>I want to export my data (which reside on the Page) into excel (xlsx) format. I have gone through couple of available libraries but none of them actually worked or helped me to achieve my requirement. Below are the required things which I want to do while export:</p>
  
  <ul>
  <li><p>Header column (First row of the exported xlsx file) should be bold which clearly state it as header.</p></li>
  <li><p>Every column should be defined which the type of data like date column, string column, number column.</p></li>
  <li><p>I can set the width of the columns, when opening the exported xlsx file (optional thing, if it is achievable)</p></li>
  </ul>
  
  <p>I have gone through various JS based framework but most of them are providing support for xls file not for xlsx. But there are some which provides xlsx support like <a href="https://github.com/SheetJS/js-xlsx" rel="nofollow">js-xlsx</a>, but there is no good documentation available to do that or how to achieve the excel export functionality with my requirements.</p>
  
  <p>I have also looked into one more xlsx export framework (<a href="https://github.com/guyonroche/exceljs" rel="nofollow">exceljs</a>) which is very good with the documentation, but I doubt it is not available outside of nodejs, its a plugin of nodejs thus require nods js to run. Thus its not purely client side or on page side. </p>
  
  <p>Can you please help me to achieve that with java-script.</p>
  
  <p>Thanks</p>