From bb04a8bbf2dc97ee3e75f985de1b8b6ff4f0619c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 23 Nov 2018 21:00:40 -0800 Subject: [PATCH] doc: clarify symlink resolution for __filename Make it more explicit that symlinks are resolved in `__filename`. Refs: https://github.com/nodejs/node/issues/22602#issuecomment-440906602 PR-URL: https://github.com/nodejs/node/pull/24587 Reviewed-By: Anna Henningsen Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig --- doc/api/modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index c7d9d4b59c7726..acab51a5f34de9 100644 --- a/doc/api/modules.md +++ b/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.