Back to Developer Roadmap

__filename

src/data/roadmaps/nodejs/content/[email protected]

4.0341 B
Original Source

__filename

The __filename in Node.js returns the filename of the executed code. It gives the absolute path of the code file. The following approach covers implementing __filename in the Node.js project.

Visit the following resources to learn more: