From b09fd2176b84d26f4ab77d47330a52124eb41da3 Mon Sep 17 00:00:00 2001 From: atever Date: Sun, 23 Jul 2017 22:53:37 +0800 Subject: [PATCH 1/3] doc: add docs for module.paths - Refs: https://github.com/nodejs/node/issues/14371#issuecomment-317184131 --- doc/api/modules.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index e07e21217c7d71..b512acfdd8f3a2 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -791,4 +791,14 @@ be explicitly exported in order to be used. [`path.dirname()`]: path.html#path_path_dirname_path [exports shortcut]: #modules_exports_shortcut [module resolution]: #modules_all_together -[native addons]: addons.html \ No newline at end of file +[native addons]: addons.html + +### module.paths + + +* {array} + +The search paths for the module. + From 9adbe660a37b1053c40fca4730a03784041dedb3 Mon Sep 17 00:00:00 2001 From: atever Date: Mon, 24 Jul 2017 00:02:37 +0800 Subject: [PATCH 2/3] doc: correct the docs for module.paths Change the `module.paths` type to `string[]`. According to alphabetical order, Move the `module.paths` after `module.parent`. Refs: https://github.com/nodejs/node/issues/14371#issuecomment-317184131 --- doc/api/modules.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index b512acfdd8f3a2..ff8de5316110fa 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -768,6 +768,15 @@ added: v0.1.16 The module that first required this one. +### module.paths + + +* {string[]} + +The search paths for the module. + ### module.require(id) - -* {array} - -The search paths for the module. - From cbbcf3bf1010808411034dd82d4d6a46b8ca24ea Mon Sep 17 00:00:00 2001 From: atever Date: Mon, 24 Jul 2017 00:41:54 +0800 Subject: [PATCH 3/3] doc: remove excess empty lines Remove excess empty lines --- doc/api/modules.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index ff8de5316110fa..837628a60fb14e 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -801,4 +801,3 @@ be explicitly exported in order to be used. [exports shortcut]: #modules_exports_shortcut [module resolution]: #modules_all_together [native addons]: addons.html -