What do "module.exports" and "exports.methods" mean in NodeJS / Express

// File: exampleModule.js

// Exporting a single function
module.exports = function() {
  // Function logic here
};

// Exporting an object with methods
exports.methods = {
  method1: function() {
    // Method 1 logic here
  },
  method2: function() {
    // Method 2 logic here
  }
};