- 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.
- C#編程入門指南(上下冊)
- Raspberry Pi 2 Server Essentials
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Spring Boot企業(yè)級項目開發(fā)實戰(zhàn)
- PHP+Ajax+jQuery網(wǎng)站開發(fā)項目式教程
- Mastering Akka
- 零基礎學C語言(升級版)
- DB2SQL性能調優(yōu)秘笈
- Learning Concurrency in Python
- INSTANT Apache Hive Essentials How-to
- MongoDB Administrator’s Guide
- Learn Linux Quickly
- 絕密原型檔案:看看專業(yè)產(chǎn)品經(jīng)理的原型是什么樣
- Python自動化運維:技術與最佳實踐
- R統(tǒng)計應用開發(fā)實戰(zhàn)