July 2018
Beginner
100 pages
2h 7m
English
Before You Begin
You should have already gone through the previous activities.
Aim
Read the file (using fs.readFile), in-file.txt, properly case format the names (using the lodash function, startCase), then sort the names in alphabetical order and write them out to a separate file out-file.txt (using fs.writeFile).
Scenario
We have a file, in-file.txt, containing a list of peoples' names. Some of the names have not been properly case formatted, for example, john doe should be changed to John Doe.
Steps for Completion
In Lesson-1, create another folder called activity-c.
npm init
Read now
Unlock full access