From 3cf0a7ca8abbbf29f87e284366a26b6e5d9f7657 Mon Sep 17 00:00:00 2001 From: Abdallah Gaber Date: Thu, 4 Jul 2024 11:28:53 +0300 Subject: [PATCH] Roadmap: MORE Node.js Content and Resources Updates and Fixes for Nearly Half the Roadmap (#6022) Corrected type tags and links, formatted content text, added new links. --- .../backend/content/javascript@8-lO-v6jCYYoklEJXULxN.md | 1 + src/data/roadmaps/nodejs/content/102-nodejs-npm/100-npx.md | 2 +- .../nodejs/content/102-nodejs-npm/104-running-scripts.md | 2 +- .../nodejs/content/102-nodejs-npm/105-npm-workspaces.md | 2 +- .../content/103-nodejs-error-handling/101-using-debugger.md | 2 +- .../103-nodejs-error-handling/102-uncaught-exceptions.md | 2 +- .../content/104-nodejs-async-programming/100-event-loop.md | 1 + .../content/104-nodejs-async-programming/102-promises.md | 2 +- .../content/104-nodejs-async-programming/103-async-await.md | 2 +- .../content/105-nodejs-working-with-files/101-path-module.md | 4 ++-- src/data/roadmaps/react-native/content/111-security/index.md | 2 +- 11 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/data/roadmaps/backend/content/javascript@8-lO-v6jCYYoklEJXULxN.md b/src/data/roadmaps/backend/content/javascript@8-lO-v6jCYYoklEJXULxN.md index 2f832c752..a4fae0bf5 100644 --- a/src/data/roadmaps/backend/content/javascript@8-lO-v6jCYYoklEJXULxN.md +++ b/src/data/roadmaps/backend/content/javascript@8-lO-v6jCYYoklEJXULxN.md @@ -12,6 +12,7 @@ Visit the following resources to learn more: - [@article@Eloquent Javascript - Book](https://eloquentjavascript.net/) - [@opensource@You Dont Know JS Yet (book series) ](https://github.com/getify/You-Dont-Know-JS) - [@video@JavaScript Crash Course for Beginners](https://youtu.be/hdI2bqOjy3c) +- [@roadmap@Visit Dedicated Node.js Roadmap](/nodejs) - [@video@Node.js Crash Course](https://www.youtube.com/watch?v=fBNz5xF-Kx4) - [@video@Node.js Tutorial for Beginners](https://www.youtube.com/watch?v=TlB_eWDSMt4) - [@official@Official JavaScript Documentation](https://www.javascript.com/) diff --git a/src/data/roadmaps/nodejs/content/102-nodejs-npm/100-npx.md b/src/data/roadmaps/nodejs/content/102-nodejs-npm/100-npx.md index e4a4f5bcf..96e591b8d 100644 --- a/src/data/roadmaps/nodejs/content/102-nodejs-npm/100-npx.md +++ b/src/data/roadmaps/nodejs/content/102-nodejs-npm/100-npx.md @@ -6,4 +6,4 @@ Visit the following resources to learn more: - [@article@Introduction to the npx Node.js Package Runner](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) - [@article@npm vs npx — What’s the Difference?](https://www.freecodecamp.org/news/npm-vs-npx-whats-the-difference/) -- [@official@Official Documentation](https://docs.npmjs.com/cli/v7/commands/npx/) +- [@official@Official Documentation](https://docs.npmjs.com/cli/commands/npx/) diff --git a/src/data/roadmaps/nodejs/content/102-nodejs-npm/104-running-scripts.md b/src/data/roadmaps/nodejs/content/102-nodejs-npm/104-running-scripts.md index b0647eb12..e8b12266b 100644 --- a/src/data/roadmaps/nodejs/content/102-nodejs-npm/104-running-scripts.md +++ b/src/data/roadmaps/nodejs/content/102-nodejs-npm/104-running-scripts.md @@ -5,4 +5,4 @@ In Node.js, npm scripts are used for the purpose of initiating a server, startin Visit the following resources to learn more: - [@article@Example of Running Scripts](https://riptutorial.com/node-js/example/4592/running-scripts) -- [@official@Running Scripts](https://docs.npmjs.com/downloading-and-installing-packages-locally) +- [@official@Running Scripts](https://docs.npmjs.com/cli/using-npm/scripts) diff --git a/src/data/roadmaps/nodejs/content/102-nodejs-npm/105-npm-workspaces.md b/src/data/roadmaps/nodejs/content/102-nodejs-npm/105-npm-workspaces.md index 541b728d4..64faf23da 100644 --- a/src/data/roadmaps/nodejs/content/102-nodejs-npm/105-npm-workspaces.md +++ b/src/data/roadmaps/nodejs/content/102-nodejs-npm/105-npm-workspaces.md @@ -4,6 +4,6 @@ Workspace is a generic term that refers to the set of npm CLI features that supp Visit the following resources to learn more: -- [@article@npm workspaces](https://docs.npmjs.com/cli/v8/using-npm/workspaces) +- [@official@npm workspaces](https://docs.npmjs.com/cli/using-npm/workspaces) - [@article@Getting Started with Npm Workspaces ](https://ruanmartinelli.com/posts/npm-7-workspaces-1) - [@feed@Explore top posts about NPM](https://app.daily.dev/tags/npm?ref=roadmapsh) diff --git a/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/101-using-debugger.md b/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/101-using-debugger.md index f436f6799..abc8cdc07 100644 --- a/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/101-using-debugger.md +++ b/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/101-using-debugger.md @@ -2,7 +2,7 @@ Node.js includes a command-line debugging utility. The Node.js debugger client is not a full-featured debugger, but simple stepping and inspection are possible. To use it, start Node.js with the inspect argument followed by the path to the script to debug. -Example - $ node inspect myscript.js +Example - `$ node inspect myscript.js` Visit the following resources to learn more: diff --git a/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/102-uncaught-exceptions.md b/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/102-uncaught-exceptions.md index 205caa12b..0ce8230d4 100644 --- a/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/102-uncaught-exceptions.md +++ b/src/data/roadmaps/nodejs/content/103-nodejs-error-handling/102-uncaught-exceptions.md @@ -6,6 +6,6 @@ The correct use of `uncaughtException` is to perform synchronous cleanup of allo Visit the following resources to learn more: -- [@official@Official Website](https://nodejs.org/api/process.html#event-uncaughtexception) +- [@official@Uncaught Exception Error Events](https://nodejs.org/api/process.html#event-uncaughtexception) - [@article@Let It Crash: Best Practices for Handling Node.js Errors on Shutdown](https://blog.heroku.com/best-practices-nodejs-errors) - [@article@Uncaught Exceptions in Node.js](https://shapeshed.com/uncaught-exceptions-in-node/) diff --git a/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/100-event-loop.md b/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/100-event-loop.md index 6946c28e6..994f14d04 100644 --- a/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/100-event-loop.md +++ b/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/100-event-loop.md @@ -9,3 +9,4 @@ Visit the following resources to learn more: - [@course@The Node.js Event Loop](https://www.coursera.org/lecture/secure-full-stack-mean-developer/the-node-js-event-loop-j5fbT) - [@official@The NodeJS Event loop](https://nodejs.org/en/guides/event-loop-timers-and-nexttick) - [@official@Don't Block the Event Loop](https://nodejs.org/en/guides/dont-block-the-event-loop) +- [@article@Event Loop in Node.js - Mixu's Node book](https://book.mixu.net/node/ch2.html#the-event-loop-understanding-how-node-executes-javascript-code) diff --git a/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/102-promises.md b/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/102-promises.md index 57e1f985b..d12ce05b8 100644 --- a/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/102-promises.md +++ b/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/102-promises.md @@ -12,6 +12,6 @@ Using resolve() and reject(), we can communicate back to the caller what the res Visit the following resources to learn more: - [@article@Promise Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) -- [@article@Official Website](https://www.promisejs.org/) +- [@official@Promises](https://www.promisejs.org/) - [@article@JavaScript Promises for Beginners](https://www.freecodecamp.org/news/javascript-promises-for-beginners/) - [@video@Asynchronous JavaScript - Promises](https://www.youtube.com/watch?v=a_8nrslImo4/) diff --git a/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/103-async-await.md b/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/103-async-await.md index cc1444a93..c20b15f41 100644 --- a/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/103-async-await.md +++ b/src/data/roadmaps/nodejs/content/104-nodejs-async-programming/103-async-await.md @@ -4,7 +4,7 @@ Async/Await is a special syntax to work with promises in a more comfortable fash Visit the following resources to learn more: -- [@article@Official Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) +- [@official@Async/Await Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) - [@article@More on async await](https://javascript.info/async-await) - [@video@Using async await](https://www.youtube.com/watch?v=V_Kr9OSfDeU) - [@article@W3Docs Async/Await](https://www.w3docs.com/learn-javascript/async-await.html) diff --git a/src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/101-path-module.md b/src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/101-path-module.md index 4a2358c5c..d59f058cb 100644 --- a/src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/101-path-module.md +++ b/src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/101-path-module.md @@ -4,6 +4,6 @@ The `path` module provides utilities for working with file and directory paths. Visit the following resources to learn more: -- [@official@Official Website](https://nodejs.org/api/path.html) -- [@official@Official Website](https://nodejs.org/en/learn/manipulating-files/nodejs-file-paths) +- [@official@Path Documentations](https://nodejs.org/api/path.html) +- [@official@Learn Node.js File Paths](https://nodejs.org/en/learn/manipulating-files/nodejs-file-paths) - [@video@Path Module in Node.js](https://youtu.be/j95Lwxvi9JY) diff --git a/src/data/roadmaps/react-native/content/111-security/index.md b/src/data/roadmaps/react-native/content/111-security/index.md index 8b2c4e5b8..6bb4bc671 100644 --- a/src/data/roadmaps/react-native/content/111-security/index.md +++ b/src/data/roadmaps/react-native/content/111-security/index.md @@ -71,7 +71,7 @@ loginSchema.validate({email: 'user@example.com', password: 'password'}); ``` ## 5. Keep Dependencies Up to Date -Regularly update your dependencies to ensure they don't contain known security vulnerabilities. Use tools like [npm audit](https://docs.npmjs.com/cli/v7/commands/npm-audit) and [dependabot](https://github.com/dependabot/dependabot-core) to automatically audit and update your dependencies. +Regularly update your dependencies to ensure they don't contain known security vulnerabilities. Use tools like [npm audit](https://docs.npmjs.com/cli/commands/npm-audit) and [dependabot](https://github.com/dependabot/dependabot-core) to automatically audit and update your dependencies. ### Example: Using npm, you can update your dependencies and check for potential vulnerabilities: