https://github.com/92hackers/node-js-api-explanation
Better understanding of node.js api documentation
https://github.com/92hackers/node-js-api-explanation
Last synced: 22 days ago
JSON representation
Better understanding of node.js api documentation
- Host: GitHub
- URL: https://github.com/92hackers/node-js-api-explanation
- Owner: 92hackers
- Created: 2016-07-06T13:29:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T09:30:30.000Z (over 7 years ago)
- Last Synced: 2024-12-03T04:42:45.298Z (3 months ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-js-api-explanation
### node.js是什么?
node.js提供这样一个平台,让你能够通过javascript, 去调用已经封装好了的系统API, 从而写出能够跑在系统上的程序,而且由于架构里面已经包含了对**window**, **linux**跨平台的实现,写出来的代码是能够跨平台的。### 目前已经实现的模块
#### 1, 核心模块
这部分是首先要学习的,也是最重要的部分,基本上,其他的模块或多或少的都是基于这些核心模块来实现的。
- Events
- Stream
- Errors
- Buffer
- Timers#### 2, 全局模块
下面这些模块里面包含了暴露在全局范围内的一些对象,以及node.js的模块机制
- Modules
- Process
- Globals
#### 3, 网络包含了对底层Tcp, Udp, TLS/SSL, HTTP, HTTPS的包装实现
- Net
- UDP/Datagram
- TLS/SSL
- HTTP
- HTTPS
- DNS#### 4, 文件处理
- File System
- Path#### 5, 操作系统
- OS
#### 6, 多进程
由于javascript代码的执行是单线程的,导致无法充分利用服务器多核资源,node采用的解决方案是 Master-Workers, 用以下模块就可实现
- Child Processes
- Cluster#### 7, 辅助开发模块
充分利用好下列模块,能让我们的开发变得更加的高效,容易
- Zlib
- Crypto
- Debugger
- Utilities
- Assertion### 参考资源
- [深入浅出node.js](http://item.jd.com/11355978.html)
- [node.js api document](https://nodejs.org/dist/latest-v4.x/docs/api/)
- [node.js source code](https://github.com/nodejs/node)