Giter Club home page Giter Club logo

Comments (9)

JayeshVP24 avatar JayeshVP24 commented on May 31, 2024

Hey @jofftiquez ,
I'd like to try and build this feature.
There's no description, but I think that this download as csv or json option is supposed to be at generate bulk section. Am I correct?
Kindly let me know if I can work on it. Thank you!

from faker-js-ui.

jofftiquez avatar jofftiquez commented on May 31, 2024

Hello @JayeshVP24 yes, that is correct. There should be an extra button to explicitly download the output as CSV or JSON. I will update the description. Thank you!

from faker-js-ui.

JayeshVP24 avatar JayeshVP24 commented on May 31, 2024

Hello @JayeshVP24 yes, that is correct. There should be an extra button to explicitly download the output as CSV or JSON. I will update the description. Thank you!

Right, thanks.
I've almost implemented it.
One doubt I have is will the beast mode/ bulk generator will always return an array of string or is there an instance where it may create array of arrays?
If its just an array of strings, I'll create a rather simpler array-to-csv generator, if not then an expensive generator can be written.
As far as I've seen, its all just array of strings, no nested arrays exist. If you have any plans to create something in relation to nested arrays, LMK.

from faker-js-ui.

jofftiquez avatar jofftiquez commented on May 31, 2024

@JayeshVP24 I see, I can't really tell for sure if there's such a case I haven't tested all of them really 😅 However you can maybe use lodash to flatten the input just in case there's such an output. But yeah we'll see.

from faker-js-ui.

jofftiquez avatar jofftiquez commented on May 31, 2024

You know what, there's actually a nested array. The "Datatype - Array" @JayeshVP24

image

from faker-js-ui.

JayeshVP24 avatar JayeshVP24 commented on May 31, 2024

@jofftiquez
Alright, I think I have handled all edge cases. Only Bulk JSON exported to CSV gives plain JSON in each line.
Have a glance at it.
BulkJSON-to-CSV.csv

from faker-js-ui.

JayeshVP24 avatar JayeshVP24 commented on May 31, 2024

In Browser, u suggested for a Download JSON/CSV for a single datapoint?
idt that makes much sense.

In extensions, Dialogs/Modals are usually a new page itself

from faker-js-ui.

jofftiquez avatar jofftiquez commented on May 31, 2024

In Browser, u suggested for a Download JSON/CSV for a single datapoint?

I mean OR, 1 for each data type. Thanks

from faker-js-ui.

JayeshVP24 avatar JayeshVP24 commented on May 31, 2024

In Browser, u suggested for a Download JSON/CSV for a single datapoint?

I mean OR, 1 for each data type. Thanks

I have made the PR, please LMK if any changes

from faker-js-ui.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.