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
parent
72cc28a436
commit
f63c59d9ee
22 changed files with 29 additions and 27 deletions
@ -1,9 +1,10 @@ |
||||
# 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: |
||||
|
||||
- [@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@Global Object in Node](https://www.youtube.com/watch?v=PY-AycMkEAg) |
||||
|
@ -1,9 +1,9 @@ |
||||
# 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: |
||||
|
||||
- [@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@Official Documentation:](https://docs.npmjs.com/cli/v7/commands/npx/) |
||||
- [@official@Official Documentation](https://docs.npmjs.com/cli/v7/commands/npx/) |
||||
|
@ -1,9 +1,9 @@ |
||||
# 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: |
||||
|
||||
- [@article@How to update?](https://www.freecodecamp.org/news/how-to-update-npm-dependencies/) |
||||
- [@video@Updating dependencies](https://www.youtube.com/watch?v=Ghdfdq17JAY) |
||||
- [@article@Updating packages downloaded from the registry](https://docs.npmjs.com/updating-packages-downloaded-from-the-registry) |
||||
- [@video@How to Update All NPM Dependencies At Once](https://www.youtube.com/watch?v=Ghdfdq17JAY) |
||||
- [@official@Updating packages downloaded from the registry](https://docs.npmjs.com/updating-packages-downloaded-from-the-registry) |
||||
|
Loading…
Reference in new issue