TASK 1.1
Write a program which reads a string from the standard input stdin, reverses it and then writes it to the standard output stdout.
- The program should be started from npm script via nodemon (i.e. npm run task1).
- The program should be running in a stand-by mode and should not be terminated after the first-string processing.
- For example:
TASK 1.2
Write a program which should do the following:
- Read the content of csv file from ./csv Example: https://epa.ms/nodejs19hw1ex1
- Use the csvtojson package (https://github.com/Keyang/nodecsvtojson) to convert csv file to json
- Write the csv file content to a new txt
Use the following format: https://epa.ms/nodejs19hw1ex2.
- Do not load all the content of the csv file into RAM via stream (read/write file content line by line).
- In case of read/write errors, log them in the console. The program should be started via npm script using nodemon (i.e. npm run task2).
TASK 1.3
Rewrite the above-mentioned programs to use babel (https://babeljs.io/) and ES6 modules.
Reviews
There are no reviews yet.