Mastering Modular JavaScript
Today I was having a look around for best practices for defining JavaScript modules. In that search, I came across the book Mastering Modular JavaScript. This book offers a good selection of best practices for JS module development. Also, all chapters are freely available on GitHub:
- Chapter 1: Module Thinking
- Chapter 2: Modularity Principles
- Chapter 3: Module Design
- Chapter 4: Shaping Internals
- Chapter 5: Modular Patterns and Practices
- Chapter 6: Development Methodology and Philosophy
For a more basic introduction to modules, see the chapter JavaScript Modules from the book Practical Modern JavaScript.