I'm wondering if there is a best way or best practice to get the full path of application in Node.js. Example: I have a a module in sub folder **/apps/myapp/data/models/mymodel.js**, and I would like to get the full path of the app (not full path of the file), which will return me **/apps/myapp**, how do I do that? I know **\_*dirname*** or **\_file** is only relative to the file itself but not the full path of the app.