What I'm trying to achieve is to create one module that contains multiple functions in it.

 

 

The problem I have is that the firstParam is an object type and the secondParam is a URL string, but when I have that it always complains that the type is wrong.

How can I declare multiple module.exports in this case?

 

 

stackoverflow.com/questions/16631064/declare-multiple-module-exports-in-node-js

+ Recent posts