Chapter 12. Modules and builds

This chapter covers

  • Modular applications with the Node.js module system
  • Automated builds
  • How to make modules work in a web browser
  • Releasing your modular application to the world

It’s unlikely that you’ll only ever write programs that are contained entirely in a single file. Instead, a typical application consists of many files, often written by many people, and, as a result, one big file won’t cut it. Breaking a program into many files makes each file easier to manage but also means you need some way to manage multiple files. Together, the files make up your program.

Individually, the part of the program contained in a single file is called a module. For example, you’re by now very familiar with fs, the ...

Get CoffeeScript in Action now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.