Ticker

6/recent/ticker-posts

Advertisement

What is __filename in Node JS

 



The file name of the current module. This is the current module file's absolute path.

console.log(__filename);
// Prints: /Users/mjr/example.js


Post a Comment

0 Comments