1. Home
  2. Node
  3. Module dirname
#node#module

Dirname argument belongs to module wrapper function and it stores the absolute path to the module.

console.log("Module directory: " + __dirname);
copy
Full Node cheatsheet
Sitemap Git repository