Skip to content

Commit ab9bc81

Browse files
ateveraddaleax
authored andcommitted
doc: add docs for module.paths
PR-URL: #14435 Refs: #14371 (comment) Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent aeb8d66 commit ab9bc81

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/api/modules.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,15 @@ added: v0.1.16
768768

769769
The module that first required this one.
770770

771+
### module.paths
772+
<!-- YAML
773+
added: v0.4.0
774+
-->
775+
776+
* {string[]}
777+
778+
The search paths for the module.
779+
771780
### module.require(id)
772781
<!-- YAML
773782
added: v0.5.1
@@ -791,4 +800,4 @@ be explicitly exported in order to be used.
791800
[`path.dirname()`]: path.html#path_path_dirname_path
792801
[exports shortcut]: #modules_exports_shortcut
793802
[module resolution]: #modules_all_together
794-
[native addons]: addons.html
803+
[native addons]: addons.html

0 commit comments

Comments
 (0)