Creator of node.js

What is module in node.js?

A module is a just reference to the current module.

A module encapsulates related code into a single unit of code. When creating a module, this can be interpreted as moving all related functions into a file.

Each module will be placed in a separate .js file under a separate folder path.

The module.exports property or the exports object allows us a module to select what should be shared with the application.
The default present modules are installed when you are downloading and install in the node.js.

In the node.js module.exports is the same as exports object.
There are three types of modules,
1.      Core modules
2.      Local modules
3.      3rd Party modules

Node.js is a light weight framework. The core modules include bare minimum functionalities of Node.js.

The list of the core modules,
a)      http,
b)     URL,
c)      Path,
d)     fs,
e)      Util and
f)       Querystring etc.

The examples,


ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

What is module in node.js? What is module in node.js? Reviewed by Anil Singh on 4:24 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^