@@ -894,11 +894,19 @@ loading.
894
894
### ` module.parent `
895
895
<!-- YAML
896
896
added: v0.1.16
897
+ deprecated:
898
+ - REPLACEME
899
+ - v14.6.0
897
900
-->
898
901
899
- * {module}
902
+ > Stability: 0 - Deprecated: Please use [ ` require.main ` ] [ ] and
903
+ > [ ` module.children ` ] [ ] instead.
904
+
905
+ * {module | null | undefined}
900
906
901
- The module that first required this one.
907
+ The module that first required this one, or ` null ` if the current module is the
908
+ entry point of the current process, or ` undefined ` if the module was loaded by
909
+ something that is not a CommonJS module (E.G.: REPL or ` import ` ).
902
910
903
911
### ` module.path `
904
912
<!-- YAML
@@ -1122,13 +1130,15 @@ consists of the following keys:
1122
1130
[` createRequire ()` ]: #modules_module_createrequire_filename
1123
1131
[` module ` object]: #modules_the_module_object
1124
1132
[` module .id ` ]: #modules_module_id
1133
+ [` module .children ` ]: #modules_module_children
1125
1134
[` path .dirname ()` ]: path.html#path_path_dirname_path
1126
1135
[ECMAScript Modules]: esm.html
1127
1136
[an error]: errors.html#errors_err_require_esm
1128
1137
[exports shortcut]: #modules_exports_shortcut
1129
1138
[module resolution]: #modules_all_together
1130
1139
[module wrapper]: #modules_the_module_wrapper
1131
1140
[native addons]: addons.html
1141
+ [` require .main ` ]: #modules_require_main
1132
1142
[source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx
1133
1143
[` -- enable- source- maps` ]: cli.html#cli_enable_source_maps
1134
1144
[` NODE_V8_COVERAGE = dir` ]: cli.html#cli_node_v8_coverage_dir
0 commit comments