Node.js Modules

Get an overview of benefits of modularity and how to use modules in Node.js.

The benefits of modularity

The general idea behind modules is pretty straightforward and similar to the one behind functions. Instead of writing all the code in one place, thus creating a monolithic application, it’s often better to split the functionalities into smaller, loosely coupled parts. Each part should focus on a specific task, making it far easier to understand and reuse. The general application’s behavior results from the interactions between these building blocks.

These smaller ...

Access this course and 1400+ top-rated courses and projects.