Node.js: Module wiring and dependencies explained

Iskander Samatov
ITNEXT
Published in
6 min readJun 1, 2019

--

Any substantial software project consists of multiple files. In the older days of JavaScript making those files play nicely together and avoiding name collisions was one of the main sources of frustration.

Moduling system introduced with Node.js solved that major problem. The system is called CommonJs and thanks to it, component name collision is a thing of the past and each…

--

--