I have a node module exported like this
module.exports = {
port:8080,
server:function(){
console.log(port);
},
}
I want to read the port value ( and some other values as well) inside the server function but when I run my code it returns undefined.
How can I access other properties inside my server.