This is a follow-up question to In Node.js, how do I "include" functions from my other files?
I would like to include an external js file that contains common
If you use ES6 you can do something like that:
function bar() { //bar } function foo() { //foo } export default { bar, foo };