Module Export & Required in Node js
In Node.js, module.exports
is used to export objects, functions, classes, or other values from a module so they can be imported and used in other files. Below are some common patterns for exporting in Node.js:
Index. js file
module.export=[