Chapter 3Modules and npm

As we discussed in Chapters 1 and 2, one of the keys to the success of Node is the wide array of modules that are available to developers. There are open-source modules on GitHub for the majority of problems developers face when building a web server. Then there are modules available for social authentication, validation, and even server frameworks such as ExpressJS and Hapi. Not every module is massive and complicated, though; there are simple modules for coloring console text, formatting dates and times, and cloning JavaScript objects.

As developers, we try not to reinvent the wheel if we can help it. We preach “code reuse” constantly and Node does not disappoint in this area. To fully appreciate the Node ecosystem, ...

Get Full Stack JavaScript Development With MEAN now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.