python ruby-programming-language Smalltalk Vue.js Knockoutjs TypeScript JavaScript, OOPs JavaScript Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 4 Angular 2 AngularJs 1.x NodeJs Perl Programming R Programming RequireJs Rust Programming Backbonejs closure programming language go-programming-language kotlin-programming-language
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,


Hi there! Welcome to my blog. My name is Anil Singh. I'm a author of this blog. For more detail about me, kindly refer to this link..
My Blogs - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions