silverwind / save-csv Goto Github PK
View Code? Open in Web Editor NEWDownload an array of objects as a CSV file in the browser
License: BSD 2-Clause "Simplified" License
Download an array of objects as a CSV file in the browser
License: BSD 2-Clause "Simplified" License
saveCsv([{a:{c:1},b:2},{a:{c:3},b:4}]);
should output
a.c,b
1,2
3,4
The "sep" option dosn't work, because it is misspelled in the body data routine.
Object.keys({ __proto__: 1 }) === []
, cannot pass in __proto__
as header value.They are both since object key is used for specifying header value.
Because we pass in user name as header value, they can be problematic.
Now items is an objects, and all key added as first row in csv with keys as values.
e.x. first_name.
sometimes these headings are not suitable for exporting. Especially when you need to make a multilingual application.
I can add the headers I need as the first line of data myself. But at the same time I can not disable the output of the first line with the keys.
It would be nice to add this feature to the options.
or if such an opportunity already exists, tell me how can i do it) Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.