Chapter 13. Writing modules: Mastering what Node is all about

This chapter covers

  • Planning a module
  • Setting up a package.json file
  • Working with dependencies and semantic versioning
  • Adding executable scripts
  • Testing out a module
  • Publishing modules

The Node package manager (npm) is arguably the best package manager any platform has seen to date. npm at its core is a set of tools for installing, managing, and creating Node modules. The barrier to entry is low and uncluttered with ceremony. Things “just work” and work well. If you aren’t convinced yet, we hope this chapter will encourage you to take another look.

The subtitle for this chapter is “Mastering what Node is all about.” We chose this because user-contributed modules make up ...

Get Node.js in Practice 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.