//// Exporting a single function
module.exports = (…) => {…}
//// Exporting multiple functions
exports.function1 = () => {}
exports.function2 = () => {}
…
// Importing
const myModule = require('./modulesFolder/myModule');
myFunctions.function1(…)
…
// Importing with destructuring
const {function1, function2} = require('./modules/myModule');
function1(…)
…
// Exporting functions lightens the main file
// but results in slightly longer compiling times