No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How do I use csvtojson with Quasar?

    Help
    csv install json npm
    3
    5
    820
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fakedrpanda last edited by

      https://www.npmjs.com/package/csvtojson

      I’m confused on how to npm install csvtojson with my quasar app. My end goal is import a csv file then load the data using a quasar table. Thanks for the help!

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        @fakedrpanda - You’d need an API (NodeJS Server) that uses that package to read the file locally (on the server) and would send the data to your application. Your application would use Axios to read the API (call it from the server).

        Scott

        dobbel 1 Reply Last reply Reply Quote 1
        • dobbel
          dobbel @s.molinari last edited by dobbel

          @s-molinari @fakedrpanda

          The package also works on the client:

          csvtojson module is a comprehensive nodejs csv parser to convert csv to json or column arrays. It can be used as node.js library / command line tool / or in browser.

          https://www.npmjs.com/package/csvtojson#browser-usage

          1 Reply Last reply Reply Quote 1
          • s.molinari
            s.molinari last edited by

            Oops. I didn’t go further than “csvtojson module is a comprehensive nodejs csv parser”. NodeJS was what caught my eye.

            So, you can also just import it into the component where you need it.

            Scott

            1 Reply Last reply Reply Quote 1
            • F
              fakedrpanda last edited by fakedrpanda

              @s-molinari Makes sense. Thank you!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post