File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,7 @@ node entry.js
688
688
``` js
689
689
Module {
690
690
id: ' .' ,
691
+ path: ' /absolute/path/to' ,
691
692
exports: {},
692
693
parent: null ,
693
694
filename: ' /absolute/path/to/entry.js' ,
@@ -899,6 +900,16 @@ added: v0.1.16
899
900
900
901
The module that first required this one.
901
902
903
+ ### ` module.path `
904
+ <!-- YAML
905
+ added: v11.14.0
906
+ -->
907
+
908
+ * {string}
909
+
910
+ The directory name of the module. This is usually the same as the
911
+ [ ` path.dirname() ` ] [ ] of the [ ` module.id ` ] [ ] .
912
+
902
913
### ` module.paths `
903
914
<!-- YAML
904
915
added: v0.4.0
@@ -1110,6 +1121,7 @@ consists of the following keys:
1110
1121
[` __filename ` ]: #modules_filename
1111
1122
[` createRequire ()` ]: #modules_module_createrequire_filename
1112
1123
[` module ` object]: #modules_the_module_object
1124
+ [` module .id ` ]: #modules_module_id
1113
1125
[` path .dirname ()` ]: path.html#path_path_dirname_path
1114
1126
[ECMAScript Modules]: esm.html
1115
1127
[an error]: errors.html#errors_err_require_esm
You can’t perform that action at this time.
0 commit comments