@@ -905,11 +905,17 @@ loading.
905905### ` module.parent `
906906<!-- YAML
907907added: v0.1.16
908+ deprecated: REPLACEME
908909-->
909910
910- * {module}
911+ > Stability: 0 - Deprecated: Please use [ ` require.main ` ] [ ] and
912+ > [ ` module.children ` ] [ ] instead.
913+
914+ * {module | null | undefined}
911915
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 ` ).
913919
914920### ` module.path `
915921<!-- YAML
@@ -1133,13 +1139,15 @@ consists of the following keys:
11331139[` createRequire ()` ]: #modules_module_createrequire_filename
11341140[` module ` object]: #modules_the_module_object
11351141[` module .id ` ]: #modules_module_id
1142+ [` module .children ` ]: #modules_module_children
11361143[` path .dirname ()` ]: path.html#path_path_dirname_path
11371144[ECMAScript Modules]: esm.html
11381145[an error]: errors.html#errors_err_require_esm
11391146[exports shortcut]: #modules_exports_shortcut
11401147[module resolution]: #modules_all_together
11411148[module wrapper]: #modules_the_module_wrapper
11421149[native addons]: addons.html
1150+ [` require .main ` ]: #modules_require_main
11431151[source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx
11441152[` -- enable- source- maps` ]: cli.html#cli_enable_source_maps
11451153[` NODE_V8_COVERAGE = dir` ]: cli.html#cli_node_v8_coverage_dir
0 commit comments