Skip to content

Commit

Permalink
doc: add docs for module.paths
Browse files Browse the repository at this point in the history
PR-URL: #14435
Refs: #14371 (comment)
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
  • Loading branch information
atever authored and addaleax committed Jul 27, 2017
1 parent aeb8d66 commit ab9bc81
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,15 @@ added: v0.1.16

The module that first required this one.

### module.paths
<!-- YAML
added: v0.4.0
-->

* {string[]}

The search paths for the module.

### module.require(id)
<!-- YAML
added: v0.5.1
Expand All @@ -791,4 +800,4 @@ 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
[native addons]: addons.html

0 comments on commit ab9bc81

Please sign in to comment.