Awesome Open Source
Awesome Open Source

tableExport.js

table``json``txt``csv``xml``doc``xls``image pdf

browsers

Browser Constructs as Filenames Max Blob Size Dependencies
Firefox 20+ Blob Yes 800 MiB None
Firefox < 20 data: URI No n/a Blob.js
Chrome Blob Yes [500 MiB][3] None
Chrome for Android Blob Yes [500 MiB][3] None
Edge Blob Yes ? None
IE 10+ Blob Yes 600 MiB None
Opera 15+ Blob Yes 500 MiB None
Opera < 15 data: URI No n/a Blob.js
Safari 6.1+* Blob No ? None
Safari < 6 data: URI No n/a Blob.js

usage

npm i table-export --save
var tableExport = require('table-export');
// dom id, filename, type: json, txt, csv, xml, doc, xsl, image, pdf
tableExport('table1', 'test', 'image');

build

git clone [email protected]:huanz/tableExport.git
cd tableExport
npm i

// 
npm run dev

// 
MODULES='doc xls image' npm run build
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,092,374
Json (39,579
Xml (18,392
Csv (15,128
Uri (4,860
Xls (889