nodejs exports module

By: Zariga Tongy

21   8   4720

Uploaded on 09/03/2014

purpose of Node.js module.exports and how do you use it

exports.greet=function()
{
return "Hello World to Nodejs With greet"
}

//exports.greet=helloword;

var he= require('./common');
console.log(he.greet());

Comments (2):

By anonymous    2017-09-20

the module.exports property or the exports object allows a module to select what should be shared with the application

enter image description here

I have a video on module_export available here

Original Thread

Popular Videos 127

Submit Your Video

If you have some great dev videos to share, please fill out this form.