feature: allow formatting output
See original GitHub issueI’d like to be able to define a certain output format for a type (say numbers) without needing to specify which columns this should be applied to. For example having all integers being output with one decimal: 3 -> 3.0.
So far I’m somehow able to do so as a string, but it would be handy doing so without quotes.
I noticed there’s an option to specify a transform function, but haven’t been able to make it work:
const foo = (item) => console.log(item);
new Parser({ transforms: [foo] }).parse(data);
While the JSON data is parsed, the transformation function isn’t called.
Any tips appreciated.
json2csv v4.5.5
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Change the format of a cell
Select the cells. Go to the ribbon to select changes as Bold, Font Color, or Font Size. Apply Excel Styles. Select the cells....
Read more >Excel 2013: Formatting Cells - GCFGlobal
Basic formatting in Excel can customize the look and feel of your Excel spreadsheet. Learn about formatting cells in Excel here.
Read more >1.3 Formatting and Data Analysis – Beginning Excel, First ...
These formatting techniques allow users of the worksheet to clearly see the column headings that define the data. In addition, the column totals...
Read more >Excel AutoFormat - A One Click Data Formatting Trick
If yes, then you may find the AutoFormat option useful in speeding up your formatting work. It allows you to quickly apply a...
Read more >Using Excel Display Formats: EXL07, EXL2K, EXL97, EXCEL
EXL07 report output can be generated based on Excel 2007/2010 templates. This feature allows for the integration of WebFOCUS reports into workbooks containing ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
v5.0 Shipped 🚀
Changelog: https://github.com/zemirco/json2csv/blob/master/CHANGELOG.md#500-2020-03-15
Nothing, working on releasing now.