★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/5a47c2e7d3Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
doc: clarify symlink resolution for __filename
Make it more explicit that symlinks are resolved in `__filename`.

Refs: #22602 (comment)
PR-URL: #24587
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Trott authored and rvagg committed Nov 28, 2018
1 parent bd4df5b commit 5a47c2e7d34521680a04831046f0322c6d4b5722
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/api/modules.md
@@ -491,8 +491,8 @@ added: v0.0.1

* {string}

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

For a main program this is not necessarily the same as the file name used in the
command line.

0 comments on commit 5a47c2e

Please sign in to comment.