Why is require.main.filename different on Azure that it is on my local windows machine?
Problem
On my local machine, this code:
var path = require('path');
var appdir = path.dirname(requir… Read More
Get application full path in Node.js
Problem
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 /… Read More
Determine project root from a running node.js application
Problem
Is there a better way than process.cwd() to determine the root directory of a running node.js process? Something like the e… Read More