js path from root of project folder code example Example: nodejs fs root folder path global.__basedir = __dirname;