@@ -905,11 +905,17 @@ loading.
905
905
### ` module.parent `
906
906
<!-- YAML
907
907
added: v0.1.16
908
+ deprecated: REPLACEME
908
909
-->
909
910
910
- * {module}
911
+ > Stability: 0 - Deprecated: Please use [ ` require.main ` ] [ ] and
912
+ > [ ` module.children ` ] [ ] instead.
913
+
914
+ * {module | null | undefined}
911
915
912
- The module that first required this one.
916
+ The module that first required this one, or ` null ` if the current module is the
917
+ entry point of the current process, or ` undefined ` if the module was loaded by
918
+ something that is not a CommonJS module (E.G.: REPL or ` import ` ).
913
919
914
920
### ` module.path `
915
921
<!-- YAML
@@ -1133,13 +1139,15 @@ consists of the following keys:
1133
1139
[` createRequire ()` ]: #modules_module_createrequire_filename
1134
1140
[` module ` object]: #modules_the_module_object
1135
1141
[` module .id ` ]: #modules_module_id
1142
+ [` module .children ` ]: #modules_module_children
1136
1143
[` path .dirname ()` ]: path.html#path_path_dirname_path
1137
1144
[ECMAScript Modules]: esm.html
1138
1145
[an error]: errors.html#errors_err_require_esm
1139
1146
[exports shortcut]: #modules_exports_shortcut
1140
1147
[module resolution]: #modules_all_together
1141
1148
[module wrapper]: #modules_the_module_wrapper
1142
1149
[native addons]: addons.html
1150
+ [` require .main ` ]: #modules_require_main
1143
1151
[source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx
1144
1152
[` -- enable- source- maps` ]: cli.html#cli_enable_source_maps
1145
1153
[` NODE_V8_COVERAGE = dir` ]: cli.html#cli_node_v8_coverage_dir
0 commit comments