I have a function that looks like:
module.exports = myFunction() {
//do some stuff
}
I can access it fine from other file using var myFunction = require(.thepath.js)
However how can i access it from the file that it was created.
I've tried myFunction()
and this.myFunction()
but neither work.
Thanks