- Node.js Design Patterns
- Mario Casciaro Luciano Mammino
- 148字
- 2021-06-18 18:15:06
Summary
In this chapter, we explored in depth what modules are, why they are useful, and why we need a module system. We also learned about the history of modules in JavaScript and about the two module systems available today in Node.js, namely CommonJS and ESM. We also explored some common patterns that are useful when creating modules or when using third-party modules.
You should now be comfortable with understanding and writing code that takes advantage of the features of both CommonJS and ESM.
In the rest of the book, we will rely mostly on ES modules, but you should now be equipped to be flexible with your choices and be able to deal with CommonJS effectively if necessary.
In the next chapter, we will start to explore the idea of asynchronous programming with JavaScript, and we will examine callbacks, events, and their patterns in depth.
- Maven Build Customization
- C# 2012程序設計實踐教程 (清華電腦學堂)
- SQL基礎教程(視頻教學版)
- C語言程序設計實驗指導 (第2版)
- NGINX Cookbook
- Python項目實戰從入門到精通
- C語言程序設計習題與實驗指導
- IDA Pro權威指南(第2版)
- SQL Server 2016 從入門到實戰(視頻教學版)
- C語言程序設計實踐
- Clojure High Performance Programming(Second Edition)
- Head First Kotlin程序設計
- Python無監督學習
- Learning NHibernate 4
- Swift iOS Programming for Kids