I have the following Node.js project (which is a Minimal Working Example of my problem):
module1.js:
module.exports = function() {
You can also try simq with which I can help you.