- __filename
- __dirname
Path to the current file
examples/basic/path_to_file.js
console.log(__filename); // path to this file console.log(__dirname); // path to the directory of this file
console.log(__filename); // path to this file console.log(__dirname); // path to the directory of this file