O'Reilly logo

Sams Teach Yourself Node.js in 24 Hours by George Ornbo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 22. Creating Node.js Modules

What You’ll Learn in This Hour:

• Creating a package.json file for a Node.js module

• Testing and developing your module

• Adding an executable to your module

• Hooking up your project to Travis CI

• Publishing your module to the npm registry

Why Create Modules?

In Hour 2, “npm (Node Package Manager),” you learned about npm. This gives you access to a wide range of modules created by third-party developers all around the world. As you become more proficient in Node.js, or your projects become more complex, it is likely that, at some point, you will want to create modules of your own for these reasons:

• For convenience and to avoid writing the same code over and over again.

• To provide a specific piece of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required