Link to code:
https://codepen.io/dcode-software/pen...
In this video I'll be showing how to export an HTML table to a CSV file that downloads automatically using vanilla JavaScript - no libraries are required!
This is relatively simple to do and in this example we'll be using a class with a constructor, public method, private method and static method. This code produces a fully valid CSV file and has the option to include or exclude headers in the output.
Support me on Patreon:
/ dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!