- Node.js Web Development
- David Herron
- 151字
- 2021-06-25 21:54:03
CommonJS and ES2015 module formats
Node.js's module implementation is strongly inspired by, but not identical to, the CommonJS module specification. The differences between them might only be important if you need to share code between Node and other CommonJS systems.
Among the changes in ES2015 is a standard module format meant for use everywhere. It has some interesting features, and by existing everywhere it should advance the state of JavaScript. Since it is incompatible with the CommonJS/Node.js module system, adopting ES2015 modules in Node.js means reworking our practices and accepted norms.
As a practical matter, Node.js programmers will be dealing with both module formats for some time during a transition period. Our long-term goal should be to adopt ES2015 modules across the board. The Node.js platform is slated to bring in support for ES2015 modules in Node.js 10. As of Node.js 8.5, the feature is available by setting a command-line flag.
- Building Modern Web Applications Using Angular
- FreeSWITCH 1.8
- Interactive Data Visualization with Python
- Android Development with Kotlin
- YARN Essentials
- Raspberry Pi 2 Server Essentials
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓(xùn)版)
- Java程序設(shè)計:原理與范例
- 動手學(xué)數(shù)據(jù)結(jié)構(gòu)與算法
- SQL Server 2016 從入門到實戰(zhàn)(視頻教學(xué)版)
- App Inventor 2 Essentials
- Angular Design Patterns
- 嵌入式Linux C語言程序設(shè)計基礎(chǔ)教程
- Getting Started with Electronic Projects
- Instant Pygame for Python Game Development How-to