Skip to content

leahstone7/dataTest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prepare a JSON object from a csv file, ready for posting to an api.

Data is found in the "data.csv" file for our contacts in the following format

id  firstName   lastName    emailAddress ipAddress

We want to upload all of the contacts with a ".com" email address to our api.

Your task

Using "index.js", read the "data.csv" file and output JSON into "output.json" in the following format;

{
    "items": [
        {
            "id": integer,
            "fullName": string, in the format "firstName lastName"
            "emailAddress": string,
            "ipAddress": string
        },
        {
            "id": integer,
            "fullName": string, in the format "firstName lastName"
            "emailAddress": string,
            "ipAddress": string
        },
        ... etc
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%