Chapter 5: Developing Node.js modules

One of the main attractions to Node.js is the massive ecosystem of external third-party libraries. Node.js modules are libraries or a set of functions you want to include in your application. Most modules will provide an API to expose their functionality. The npm registry is where most Node.js modules are stored, where there are over a million Node.js modules available.

This chapter will first cover how to consume existing Node.js modules from the npm registry for use within your applications using the npm command-line interface.

Later in this chapter, you'll learn how to develop and publish your own Node.js module to the npm registry. There will also be an introduction to using the newer ECMAScript modules ...

Get Node Cookbook - Fourth Edition 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.