The backlog is as folows:
- Read the file (sample.csv).
- Parse the loaded csv.
- For each line do transfomation for
first_name
andlast_name
intofull_name
, hence we'll havefull_name
for each line. - Send the transformed line via SMS. (see helper.js)
- Log the SMS sending status result to S3. (see helper.js)
- What do you think about the
naive()
function? - Please take a peek at the parse-async.js, parse-stream.js and parse-promise.js, then give your best gift to us! (Yes, sending us a proper PR)
Constraint: Please use async API only e.g. fs.readFile
NOT fs.readFileSync
for reading files.
Note: The sendSms
and logToS3
have surprises, please deal with that.
Ah, yes, one last thing, please use http://jscs.info/ to make your code consistent.
Have fun!