Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages