Modules
Understanding and using the Node module system
by Pedro Teixeira
ABOUT THE BOOK
The first short book of this series is a short introduction that sets the foundation of the next books to come. It shows what you can do with JavaScript and the Node module system to create and consume different types of modules: Singletons, Closure-based and prototype-based pseudo-classes, façades and others.
37 pages
Contents:
- Returning the exported value
- A module registry
- Transitive module loading
- The Node module system
- Module types
- The Singleton pattern
- Closure-based classes
- Prototype-based classes
- Façades
Price: Free