Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

File Parser

File-parser is a tool that converts json/csv files into json string data.

Setup

  • npm install for installing dependencies.
  • npm start to run server on local.

Using JSON Parser from Frontend


        // Append the file to the FormData object
        formData.append("jsonFile", file);
        const response = await fetch("http://localhost:9000/api/parser/json", {
            method: "POST",
            headers: {
                "contentType":"multipart/form-data"
            },
            body: formData,
        });

Using CSV Parser from Frontend

Using JSON Parser from Frontend

        const formData = new FormData();
        formData.append("csvFile", file);

        const response = await fetch("http://localhost:9000/api/parser/csv", {
            method: "POST",
            headers: {
                "contentType":"multipart/form-data"
            },
            body: formData,
        });

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages