Tryit Editor v3.5 - Show Node.js Command Prompt
demo_met_path_dirname.js:
C:\Users\My Name>node demo_met_path_dirname.js

/Users/Refsnes