Commit c328e58 1 parent b44f245 commit c328e58 Copy full SHA for c328e58
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -841,11 +841,19 @@ added: v9.3.0
841
841
A list of the names of all modules provided by Node.js. Can be used to verify
842
842
if a module is maintained by a third-party module or not.
843
843
844
+ Note that ` module ` in this context isn't the same object that's provided
845
+ by the [ module wrapper] [ ] . To access it, require the ` Module ` module:
846
+
847
+ ``` js
848
+ const builtin = require (' module' ).builtinModules ;
849
+ ```
850
+
844
851
[ `__dirname` ] : #modules_dirname
845
852
[ `__filename` ] : #modules_filename
846
853
[ `Error` ] : errors.html#errors_class_error
847
854
[ `module` object ] : #modules_the_module_object
848
855
[ `path.dirname()` ] : path.html#path_path_dirname_path
849
856
[ exports shortcut ] : #modules_exports_shortcut
850
857
[ module resolution ] : #modules_all_together
858
+ [ module wrapper ] : #modules_the_module_wrapper
851
859
[ native addons ] : addons.html
You can’t perform that action at this time.
0 commit comments