Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the difference between require() vs module.require() in nodejs ?

The documentation don't provide any content about the difference between them. Can anyone explain ?

What I have tried:

I am learning to node.js but these two things confused me. There is no such content in the documentation that explains the difference. So please can some one explain in easy words and examples the difference between require() vs module.require() in nodejs ?
Posted
Updated 20-Sep-18 2:51am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900