HomeAuthorsContact

what is module in NO

By Bikash Dash
Published in NodeJS
May 13, 2021
1 min read

what is module in NodeJS ?

module is a javascript library which contains set of function.

To include a module we need require function

example : var http = require(‘http’)

Now our application have access to http module .

we can do bellow

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/html'});
  res.end('Hello World!');
}).listen(8080);

Bikash Dash

Bikash Dash

Full Stack Developer

Full Stack Developer at Defraudit.pvt.ltd

Expertise

nodejs
react

Social Media

instagramtwitterwebsite

Related Posts

NodeJS
what is NodeJs url module
May 15, 2021
1 min
© 2021, All Rights Reserved.

Quick Links

Advertise with usAbout UsContact Us

Social Media