One of the great aspects of writing Node.js applications is the built-in modularity the environment provides. As demonstrated in Chapter 11, it’s simple to download and install any number of Node modules, and using them is equally simple: just include a single
require() statement naming the module, and you’re off and running.
ECMAScript 6 provides native support for modules, but the specification is still undergoing change and there is no implementation support yet. There is some support for it in Traceur, as well as a polyfill, which can at least provide an idea of how they’ll be implemented in the future.
Chances are ...