From 546f9419d79179d9444b87bf0c55752165adf10f 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 d75905e4c5bd01..6706206f9b92ed 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.