DZone

Introduction

In my previous post about Node.js — Dependency Management, we looked at the basics of what is Node.js module. How can we use module.exports and require to work with dependencies. How folder dependencies work and why they are useful. We all look at how the Node.js lookup system works to look for dependencies and some basics of NPM.

Today we will continue from that point and see how we use this module system to break down an application into multiple modules. What are the benefits of doing so and how does Node.js handle this?

Source: DZone