js files index.js and utils.js
I have tried to do the module export solution with no luck.
To call a function in utils.js from index.js I write a the function in utils as
export.functioname = function(parms) {
...
};
If i want to call the same function internally from utils.js i can do it i have to write another identical function as: var functionname (parms) { ... }
How can i get around this and only have one function to be called externally and internally?
exports.functioname(parms)within the module, as long as you define it before you call it.