I have one nodeJs script under the path ~/x/y/z/src/application.js that would like to get the path of where the index.js call the function. I can use path
~/x/y/z/src/application.js
path