Node Modules and Require In Depth

Node Modules and Require In Depth

Learn everything about Node modules! We will go in depth on the Node module object and all its properties including topics such as module wrapping, module caching, etc. We will also learn about the Node require method. Become a Better Developer 📚 https://courses.wittcode.com My Software 📡 WittCepter - https://chromewebstore.google.com/det... 🪵 ConsoleLog - https://chromewebstore.google.com/det... Download Code 👨‍💻 https://blog.wittcode.com ⌛ Timestamps 0:00 - Introduction 0:07 - What is a Module? Benefits of Modules? 0:56 - History of Modules 1:53 - What is module.exports? 2:05 - Logging the Module Object 2:33 - Setting up the Demonstration 4:29 - Creating a Modular Program 6:07 - More about module.exports 7:14 - Exporting an Object 13:56 - More about the module Keyword 14:53 - module.id 15:27 - module.paths 19:38 - Requiring folders 24:02 - require.resolve() 25:52 - module.children 27:34 - module.parent 28:08 - require.main 29:14 - module.loaded 30:48 - Loading and Requiring a module is Synchronous 33:35 - Circular Module Dependencies 36:57 - Requiring Adons 39:39 - Module Wrapping 42:05 - Module Caching 43:54 - Outro