O'Reilly logo

Learning Node.js for .NET Developers by Harry Cummings

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

Chapter 13. Creating JavaScript Packages

So far we have built up a web application, making use of various npm packages along the way. These packages include libraries such as Express and command-line tools such as Gulp. Now we'll look at how to go about creating packages of our own.

In this chapter we will:

  • Explore the different module systems available for JavaScript
  • Create our own JavaScript library
  • Write JavaScript that can run on both the client and server-side
  • Create a command-line tool in JavaScript
  • Release a new npm package
  • Use Node.js modules in the browser environment

Note

The code examples in this chapter are independent of everything we've done so far.

Writing universal modules

We have already written many of our own modules as part of our application. ...

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