Hello and welcome to this video.
In this video, I'm going to introduce you to modules and packages in no doubt, yes.
What is a module?
He no doubt yes.
Modules are basically like JavaScript libraries, and they contain a set of functions that you can include
in your applications.
Node.js has a set of built in modules that you can use without any further installation in order to
use a module.
You have to use the required function with the name of the module to bring that module into your project.
For example, if you are importing the 8TB module, you use the required function and then pass in the
name of the module that you want to include in your application.
You can also create your own modules and then import them into applications.
What is a package?
A package in Node.js contains all the files you need for a module.
So modules are basically JavaScript libraries that you can include in your project.
In order to download a package, you have to install it using npm.
NPM stands for Node Package Manager, which is the utility that you will need to use to install a node
package.
NPM is automatically installed when you also install node.
Thought this?