function access variable in module.exports file in nodeJs
Since getfirst() and getsecond() are called only within parsefile.js, you can just define an object inside this file (something like this const local = {} at the top of your file) and use it instead of global.