- Node.js Web Development
- David Herron
- 100字
- 2021-06-25 21:54:04
File modules
The CommonJS and ES2015 modules we've just looked at are what the Node.js documentation describes as a file module. Such modules are contained within a single file, whose filename ends with .js, .mjs, .json, or .node. The latter are compiled from C or C++ source code, or even other languages such as Rust, while the former are of course written in JavaScript or JSON.
We've already looked at several examples of using these modules, as well as the difference between the CommonJS format traditionally used in Node.js, and the new ES2015 modules that are now supported.
推薦閱讀
- Software Defined Networking with OpenFlow
- Android項(xiàng)目開發(fā)入門教程
- WSO2 Developer’s Guide
- Julia機(jī)器學(xué)習(xí)核心編程:人人可用的高性能科學(xué)計(jì)算
- Android 7編程入門經(jīng)典:使用Android Studio 2(第4版)
- RTC程序設(shè)計(jì):實(shí)時(shí)音視頻權(quán)威指南
- 面向?qū)ο蟪绦蛟O(shè)計(jì)(Java版)
- INSTANT Mercurial SCM Essentials How-to
- Serverless架構(gòu)
- Hands-On Functional Programming with TypeScript
- H5頁面設(shè)計(jì):Mugeda版(微課版)
- C++新經(jīng)典
- Cybersecurity Attacks:Red Team Strategies
- ServiceNow:Building Powerful Workflows
- Android應(yīng)用開發(fā)實(shí)戰(zhàn)(第2版)