1、CommonJS和NodeJS之间的关系
2019-09-25 本文已影响0人
派大星的博客
CommonJS是一种规范,NodeJS是这种规范的实现。CommonJS是一 个不断发展的规范,计划将要包括如下部分:
- Modules
- Binary strings and buffers
- Charset encodings
- Binary, buffered, and textual input and output (io) streams
- System process arguments, environment, and streams
- File system interface
- Socket streams
- Unit test assertions, running, and reporting
- Web server gateway interface, JSGI
- Local and remote packages and package management
具体每个子规范的定制进度请查看官方网站的说明:http://commonjs.org/specs/