August 21, 2019
module.exports
module.exports module.exports is an empty object and a property on the module object. Module is a special object in NodeJS which contains information about the current module. The exports property is used to expose properties or functions of the current module. Use require to import properties from some module. // file.js…