Hi I ran into a problem in Nodejs(with express) while trying to export a module with two functions which is structured as follows
exports.class1 = function(){
return = {
method1 : function(arg1, arg2){
...........
},
method2 : function (arg2, arg3, arg4){
..........
}
};
}
this module is saved in as module1.js when it is imported and used as follows an error occurs
var module1 = require('./module1');
module1.class1.method1(arg1, arg2);