Author: | mikebald |
---|---|
Views Total: | 16,146 views |
Official Page: | Go to website |
Last Update: | April 8, 2015 |
License: | MIT |
Preview:

Description:
CSV-Export is a small and easy-to-use JavaScript library that lets you export JSON data to a CSV file.
See Also:
How to use it:
Download and import the CSVExport.js JS library in your document.
<script src="CSVExport.js"></script>
Prepare your JSON data.
var example = [{Name: "Bob", Age: 22}, {Name: "Frank", Age: 19}, {Name: "Henry", Age: 43}];
Phrase and export the JSON data into CSV.
var x = new CSVExport(example); return false;
The full markup to phrase the JSON data and download the CSV file through a button.
function exampleA(){ var example = [{Name: "Bob", Age: 22}, {Name: "Frank", Age: 19}, {Name: "Henry", Age: 43}]; var x = new CSVExport(example); return false; }
<input type="button" onclick="exampleA();" value="Example A">
Hi,
not working in safari + OSX
Hi,
Is this free for corporate work also?