Assignment: Node.js basics #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link: https://github.com/AlreadyBored/nodejs-assignments/blob/main/assignments/nodejs-basics/assignment.md
Deadline: 2022-06-05 23:59 (Europe/Minsk)
SelfCheck:
File system (src/fs):
+6 create.js implemented properly
+10 copy.js implemented properly
+10 rename.js implemented properly
+6 delete.js implemented properly
+6 list.js implemented properly
+6 read.js implemented properly
Command line interface(src/cli):
+6 env.js implemented properly
+6 args.js implemented properly
Modules(src/modules):
+20 cjsToEsm.cjs refactored properly
Hash (src/hash):
+10 calcHash.js implemented properly
Streams (src/streams):
+10 read.js implemented properly
+10 write.js implemented properly
+10 transform.js implemented properly
Zlib (src/zip):
+10 compress.js implemented properly
+10 decompress.js implemented properly
Advanced Scope
Worker Threads (src/wt):
+10 worker.js implemented properly
+30 main.js implemented properly
Child Processes (src/cp):
+10 spawns child process
+10 child process stdin receives input from master process stdin
+10 child process stdout sends data to master process stdout
NB: in most files, except for last 2 tasks, changed function is not called. If you test via
node 'file/path'make sure you call testing function in file likefuncname()NB2: If async function returns something-> it returns promise. To check the result of this function you need for example
funcname().then(data=>console.log(data)). Othervise you will see pending promise