Getting directory from which node.js was executed process.cwd() will provide that. __dirname gives you the path where a file resides.