Roadmap: Node.js Content and Resources Updates and Fixes (#6015)

Corrected type tags, added some extra copy, added new links.
---------

Co-authored-by: dsh <daniel.s.holdsworth@gmail.com>
pull/6017/head
Abdallah Gaber 8 months ago committed by GitHub
parent 72cc28a436
commit f63c59d9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      src/data/roadmaps/nodejs/content/100-nodejs-introduction/102-history-of-nodejs.md
  2. 3
      src/data/roadmaps/nodejs/content/101-nodejs-modules/102-global-keyword.md
  3. 4
      src/data/roadmaps/nodejs/content/102-nodejs-npm/100-npx.md
  4. 6
      src/data/roadmaps/nodejs/content/102-nodejs-npm/101-global-install-vs-local-install.md
  5. 6
      src/data/roadmaps/nodejs/content/102-nodejs-npm/102-updating-packages.md
  6. 2
      src/data/roadmaps/nodejs/content/102-nodejs-npm/104-running-scripts.md
  7. 4
      src/data/roadmaps/nodejs/content/102-nodejs-npm/index.md
  8. 2
      src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/103-glob.md
  9. 2
      src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/104-globby.md
  10. 2
      src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/105-fs-extra.md
  11. 2
      src/data/roadmaps/nodejs/content/105-nodejs-working-with-files/106-chokidar.md
  12. 2
      src/data/roadmaps/nodejs/content/106-nodejs-command-line-apps/101-printing-output/104-cli-progress.md
  13. 2
      src/data/roadmaps/nodejs/content/106-nodejs-command-line-apps/102-taking-input/101-prompts.md
  14. 2
      src/data/roadmaps/nodejs/content/106-nodejs-command-line-apps/103-command-line-args/101-commander-js.md
  15. 2
      src/data/roadmaps/nodejs/content/106-nodejs-command-line-apps/104-environment-variables/100-dotenv.md
  16. 2
      src/data/roadmaps/nodejs/content/107-nodejs-apis/104-got.md
  17. 2
      src/data/roadmaps/nodejs/content/107-nodejs-apis/108-jsonwebtoken.md
  18. 2
      src/data/roadmaps/nodejs/content/109-nodejs-template-engines/102-ejs.md
  19. 2
      src/data/roadmaps/nodejs/content/110-nodejs-databases/100-relational/102-sequelize.md
  20. 2
      src/data/roadmaps/nodejs/content/111-nodejs-testing/101-mocha.md
  21. 2
      src/data/roadmaps/nodejs/content/112-nodejs-logging/100-morgan.md
  22. 2
      src/data/roadmaps/nodejs/content/113-nodejs-keep-app-running-prod/101-forever.md

@ -6,4 +6,5 @@ Visit the following resources to learn more:
- [@article@Rising Stack - History of Node.js on a Timeline](https://blog.risingstack.com/history-of-node-js/) - [@article@Rising Stack - History of Node.js on a Timeline](https://blog.risingstack.com/history-of-node-js/)
- [@article@SAP Press - How Did Node.js Come About?](https://blog.sap-press.com/how-did-node.js-come-about) - [@article@SAP Press - How Did Node.js Come About?](https://blog.sap-press.com/how-did-node.js-come-about)
- [@video@Node.js: The Documentary | An origin story](https://youtu.be/LB8KwiiUGy0)
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh) - [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)

@ -1,9 +1,10 @@
# global keyword # global keyword
In browsers, the top-level scope is the global scope. This means that within the browser var something will define a new global variable. In Node.js this is different. The top-level scope is not the global scope; `var something` inside a Node.js module will be local to that module. In browsers, the top-level scope is the global scope, and its global object is called the `window` object. Within the browser, `var something` will define a new global variable inside the `window` object. In Node.js, this is different. The top-level scope is **not** the global scope; `var something` inside a Node.js module will be local to that module.
Visit the following resources to learn more: Visit the following resources to learn more:
- [@official@global Keyword in Node.js](https://nodejs.org/api/globals.html#global) - [@official@global Keyword in Node.js](https://nodejs.org/api/globals.html#global)
- [@article@What is the 'global' object in NodeJS](https://stackoverflow.com/questions/43627622/)
- [@video@What is Global Object?](https://www.youtube.com/watch?v=jn8PZNBmKm0) - [@video@What is Global Object?](https://www.youtube.com/watch?v=jn8PZNBmKm0)
- [@video@Global Object in Node](https://www.youtube.com/watch?v=PY-AycMkEAg) - [@video@Global Object in Node](https://www.youtube.com/watch?v=PY-AycMkEAg)

@ -1,9 +1,9 @@
# npx # npx
npx is a very powerful command that's been available in npm starting version 5.2, released in July 2017. If you don't want to install npm, you can install npx as a standalone package. npx lets you run code built with Node.js and published through the npm registry. npx is a very powerful command that's been available in npm starting version 5.2, released in July 2017. If you don't want to install npm, you can install npx as a standalone package. npx lets you run code built with Node.js and published through the npm registry, without needing to install the package itself. This is particularly useful for trying out new tools, running one-time commands, or using packages in shared environments where global installations are undesirable. npx takes care of downloading the package on-the-fly, running the desired command, and then cleaning up the temporary installation. This keeps your project's dependencies lean and avoids version conflicts.
Visit the following resources to learn more: 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@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/) - [@article@npm vs npx — What’s the Difference?](https://www.freecodecamp.org/news/npm-vs-npx-whats-the-difference/)
- [@article@Official Documentation:](https://docs.npmjs.com/cli/v7/commands/npx/) - [@official@Official Documentation](https://docs.npmjs.com/cli/v7/commands/npx/)

@ -4,6 +4,6 @@ NodeJS and NPM allow two methods of installing dependencies/packages: Local and
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Downloading and installing packages locally](https://docs.npmjs.com/downloading-and-installing-packages-locally) - [@official@Downloading and installing packages locally](https://docs.npmjs.com/downloading-and-installing-packages-locally)
- [@article@Downloading and installing packages globally](https://docs.npmjs.com/downloading-and-installing-packages-globally) - [@official@Downloading and installing packages globally](https://docs.npmjs.com/downloading-and-installing-packages-globally)
- [@article@NPM Install Docs](https://docs.npmjs.com/cli/v8/commands/npm-install) - [@official@NPM Install Docs](https://docs.npmjs.com/cli/commands/npm-install)

@ -1,9 +1,9 @@
# Updating Packages # Updating Packages
npm provides various features to help install and maintain the project's dependencies. Dependencies get updates with new features and fixes, so upgrading to a newer version is recommended. We use npm update commands for this. npm provides various features to help install and maintain the project's dependencies. Dependencies get updates with new features and fixes, so upgrading to a newer version is recommended. We use `npm update` commands for this.
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@How to update?](https://www.freecodecamp.org/news/how-to-update-npm-dependencies/) - [@article@How to update?](https://www.freecodecamp.org/news/how-to-update-npm-dependencies/)
- [@video@Updating dependencies](https://www.youtube.com/watch?v=Ghdfdq17JAY) - [@video@How to Update All NPM Dependencies At Once](https://www.youtube.com/watch?v=Ghdfdq17JAY)
- [@article@Updating packages downloaded from the registry](https://docs.npmjs.com/updating-packages-downloaded-from-the-registry) - [@official@Updating packages downloaded from the registry](https://docs.npmjs.com/updating-packages-downloaded-from-the-registry)

@ -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: Visit the following resources to learn more:
- [@article@Example of Running Scripts](https://riptutorial.com/node-js/example/4592/running-scripts) - [@article@Example of Running Scripts](https://riptutorial.com/node-js/example/4592/running-scripts)
- [@article@Running Scripts](https://docs.npmjs.com/downloading-and-installing-packages-locally) - [@official@Running Scripts](https://docs.npmjs.com/downloading-and-installing-packages-locally)

@ -8,7 +8,7 @@ Visit the following resources to learn more:
- [@official@What is npm?](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager) - [@official@What is npm?](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager)
- [@official@An introduction to the npm package manager](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager) - [@official@An introduction to the npm package manager](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager)
- [@article@Official Website](https://www.npmjs.com/) - [@official@Official Website](https://www.npmjs.com/)
- [@article@Official Documentation](https://docs.npmjs.com/) - [@official@Official Documentation](https://docs.npmjs.com/)
- [@video@NPM Crash Course](https://www.youtube.com/watch?v=jHDhaSSKmB0) - [@video@NPM Crash Course](https://www.youtube.com/watch?v=jHDhaSSKmB0)
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh) - [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)

@ -4,4 +4,4 @@ The glob pattern is most commonly used to specify filenames, called wildcard cha
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@NPM Glob](https://www.npmjs.com/package/glob) - [@official@NPM Glob](https://www.npmjs.com/package/glob)

@ -6,5 +6,5 @@ Based on fast-glob but adds a bunch of useful features.
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@NPM Globby](https://www.npmjs.com/package/globby) - [@official@NPM Globby](https://www.npmjs.com/package/globby)
- [@opensource@Github Globby](https://github.com/sindresorhus/globby) - [@opensource@Github Globby](https://github.com/sindresorhus/globby)

@ -4,5 +4,5 @@ fs-extra adds file system methods that aren't included in the native fs module a
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Official Website](https://www.npmjs.com/package/fs-extra) - [@official@Official Website](https://www.npmjs.com/package/fs-extra)
- [@article@fs-extra vs fs](https://ar.al/2021/03/07/fs-extra-to-fs/) - [@article@fs-extra vs fs](https://ar.al/2021/03/07/fs-extra-to-fs/)

@ -4,4 +4,4 @@ Chokidar is a fast open-source file watcher for node. js. You give it a bunch of
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@NPM Docs](https://www.npmjs.com/package/chokidar) - [@official@NPM Docs](https://www.npmjs.com/package/chokidar)

@ -4,5 +4,5 @@ CLI-Progress is a package that provides a custom progress bar for CLI applicatio
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@CLI-Progress Documentation](https://www.npmjs.com/package/cli-progress) - [@official@CLI-Progress Documentation](https://www.npmjs.com/package/cli-progress)
- [@feed@Explore top posts about CLI](https://app.daily.dev/tags/cli?ref=roadmapsh) - [@feed@Explore top posts about CLI](https://app.daily.dev/tags/cli?ref=roadmapsh)

@ -4,4 +4,4 @@ Prompts is a higher level and user friendly interface built on top of Node.js's
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Official Documentation](https://www.npmjs.com/package/prompts) - [@official@Official Documentation](https://www.npmjs.com/package/prompts)

@ -4,5 +4,5 @@ Commander is a light-weight, expressive, and powerful command-line framework for
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Official Documentation](https://www.npmjs.com/package/commander) - [@official@Official Documentation](https://www.npmjs.com/package/commander)
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh) - [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)

@ -5,7 +5,7 @@ dotenv is a zero-dependency module that loads environment variables from a `.env
Visit the following resources to learn more: Visit the following resources to learn more:
- [@opensource@dotenv Docs](https://github.com/motdotla/dotenv#readme) - [@opensource@dotenv Docs](https://github.com/motdotla/dotenv#readme)
- [@article@Dotenv package](https://www.npmjs.com/package/dotenv) - [@official@Dotenv package](https://www.npmjs.com/package/dotenv)
- [@article@Dotenv tutorial](https://zetcode.com/javascript/dotenv/) - [@article@Dotenv tutorial](https://zetcode.com/javascript/dotenv/)
- [@article@How to Use Node Environment Variables with a DotEnv File for Node.js and npm](https://www.freecodecamp.org/news/how-to-use-node-environment-variables-with-a-dotenv-file-for-node-js-and-npm/) - [@article@How to Use Node Environment Variables with a DotEnv File for Node.js and npm](https://www.freecodecamp.org/news/how-to-use-node-environment-variables-with-a-dotenv-file-for-node-js-and-npm/)
- [@feed@Explore top posts about General Programming](https://app.daily.dev/tags/general-programming?ref=roadmapsh) - [@feed@Explore top posts about General Programming](https://app.daily.dev/tags/general-programming?ref=roadmapsh)

@ -4,5 +4,5 @@ Got is a lighter, human-friendly, and powerful HTTP request library explicitly d
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Official Documentation](https://www.npmjs.com/package/got) - [@official@Official Documentation](https://www.npmjs.com/package/got)
- [@article@How to consume APIs using GOT in Node.js?](https://rapidapi.com/guides/call-apis-got) - [@article@How to consume APIs using GOT in Node.js?](https://rapidapi.com/guides/call-apis-got)

@ -4,6 +4,6 @@ JWT, or JSON-Web-Token, is an open standard for sharing security information bet
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Package Documentation](https://www.npmjs.com/package/jsonwebtoken) - [@official@Package Documentation](https://www.npmjs.com/package/jsonwebtoken)
- [@article@What is JWT](https://www.akana.com/blog/what-is-jwt) - [@article@What is JWT](https://www.akana.com/blog/what-is-jwt)
- [@video@JWT Implementation](https://www.youtube.com/watch?v=mbsmsi7l3r4) - [@video@JWT Implementation](https://www.youtube.com/watch?v=mbsmsi7l3r4)

@ -7,7 +7,7 @@ Visit the following resources to learn more:
- [@official@Ejs website](https://ejs.co/) - [@official@Ejs website](https://ejs.co/)
- [@official@Ejs Official Documentations](https://ejs.co/#docs) - [@official@Ejs Official Documentations](https://ejs.co/#docs)
- [@article@Ejs Official Package](https://www.npmjs.com/package/ejs) - [@official@Ejs Official Package](https://www.npmjs.com/package/ejs)
- [@article@Try EJS Online](https://ionicabizau.github.io/ejs-playground/) - [@article@Try EJS Online](https://ionicabizau.github.io/ejs-playground/)
- [@article@How to use EJS](https://www.digitalocean.com/community/tutorials/how-to-use-ejs-to-template-your-node-application) - [@article@How to use EJS](https://www.digitalocean.com/community/tutorials/how-to-use-ejs-to-template-your-node-application)
- [@article@Step-by-Step EJS Guide](https://codeforgeek.com/ejs-template-engine-in-nodejs/) - [@article@Step-by-Step EJS Guide](https://codeforgeek.com/ejs-template-engine-in-nodejs/)

@ -9,7 +9,7 @@ An ORM is known as Object Relational Mapper. This is a tool or a level of abstra
Visit the following resources to learn more: Visit the following resources to learn more:
- [@official@Sequelize Website](https://sequelize.org/) - [@official@Sequelize Website](https://sequelize.org/)
- [@article@Sequelize - NPM Package](https://www.npmjs.com/package/sequelize) - [@official@Sequelize - NPM Package](https://www.npmjs.com/package/sequelize)
- [@official@Official Sequelize Docs](https://sequelize.org/docs/v6/getting-started/) - [@official@Official Sequelize Docs](https://sequelize.org/docs/v6/getting-started/)
- [@article@Getting started with Sequelize](https://levelup.gitconnected.com/the-ultimate-guide-to-get-started-with-sequelize-orm-238588d3516e) - [@article@Getting started with Sequelize](https://levelup.gitconnected.com/the-ultimate-guide-to-get-started-with-sequelize-orm-238588d3516e)
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh) - [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)

@ -4,7 +4,7 @@ Mocha is an open source JavaScript test framework running on Nodejs and in the b
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Official Website](https://www.npmjs.com/package/mocha) - [@official@Official Website](https://www.npmjs.com/package/mocha)
- [@article@Mocha Documentation](https://mochajs.org/) - [@article@Mocha Documentation](https://mochajs.org/)
- [@video@Mocha Tutorial](https://youtube.com/playlist?list=PLgbtO1Bcz4C-vU0JLfDBsZGbSUdNX4mQ8) - [@video@Mocha Tutorial](https://youtube.com/playlist?list=PLgbtO1Bcz4C-vU0JLfDBsZGbSUdNX4mQ8)
- [@feed@Explore top posts about Testing](https://app.daily.dev/tags/testing?ref=roadmapsh) - [@feed@Explore top posts about Testing](https://app.daily.dev/tags/testing?ref=roadmapsh)

@ -4,5 +4,5 @@ Morgan is a NodeJS and express.js middleware to log the HTTP request and error,
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Official Website](https://www.npmjs.com/package/morgan) - [@official@Official Website](https://www.npmjs.com/package/morgan)
- [@article@How to use Morgan|DigitalOcean](https://www.digitalocean.com/community/tutorials/nodejs-getting-started-morgan) - [@article@How to use Morgan|DigitalOcean](https://www.digitalocean.com/community/tutorials/nodejs-getting-started-morgan)

@ -4,4 +4,4 @@ Forever is a node.js package for ensuring that a given script runs continuously
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@Forever package documentation](https://www.npmjs.com/package/forever) - [@official@Forever package documentation](https://www.npmjs.com/package/forever)

Loading…
Cancel
Save