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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access