"Magic Globals" for node.js #npm install magic-globals npm install magic-globals --save require('magic-globals'); console.log('__line: ' + __line); console.log('__file: ' + __file); console.log('__ext: ' + __ext); console.log('__base: ' + __base); console.log('__filename: ' + __filename); console.log('__dirname: ' + __dirname); console.log('__function: ' + __function);