1function foo() {}
2function bar() {}
3
4// To export above functions:
5module.exports = foo;
6module.exports = bar;
7
8// And in the file you want to use these functions,
9// import them like this:
10const foo = require('./module/path');
11const bar = require('./module/path');
12
13