question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: allow formatting output

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
knownasilyacommented, Mar 15, 2020
1reaction
knownasilyacommented, Mar 15, 2020

Nothing, working on releasing now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found