节点的模块度
Node.js has a set of core modules that are part of the platform and come with the Node.js installation.
Node.js具有一组核心模块,这些模块是平台的一部分,并随Node.js安装一起提供 。
We have a lot of them:
我们有很多:
Name | Description |
---|---|
assert | provides a set of assertion functions useful for testing |
buffer | provides the ability to handle buffers containing binary data |
child_process | provides the ability to spawn child processes |
console | provides a simple debugging console |
cluster | allows to split a Node.js process into multiple workers to take advantage of multi-core systems |
crypto | provides cryptographic functionality |
dgram | provides an implementation of UDP Datagram sockets |
dns | provides name resolution and DNS lookups |
events | provides an API for managing events |
fs | provides an API for interacting with the file system |
http | provides an HTTP client/server implementation |
http2 | provides an HTTP/2 client/server implementation |
https | provides an HTTPS client/server implementation |
net | provides an asynchronous network API |
os | provides operating system-related utility methods and properties |
path | provides utilities for working with file and directory paths |
perf_hooks | to enable the collection of performance metrics |
process | provides information about, and control over, the current Node.js process |
querystring | provides utilities for parsing and formatting URL query strings |
readline | provides an interface for reading data from a Readable stream |
repl | provides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications |
stream | an abstract interface for working with streaming data |
string_decoder | provides an API for decoding Buffer objects into strings |
timers | provide functions to schedule functions to be called at some future period of time |
tls | provides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols |
tty | provides functionality used to perform I/O operations in a text terminal |
url | provides utilities for URL resolution and parsing |
util | supports the needs of Node.js internal APIs, useful for application and module developers as well |
v8 | exposes APIs that are specific to the version of V8 built into the Node.js binary |
vm | enables compiling and running code within V8 Virtual Machine contexts |
wasi | provides an implementation of the WebAssembly System Interface specification |
worker | enables the use of threads that execute JavaScript in parallel |
zlib | provides compression functionality |
名称 | 描述 |
---|---|
断言 | 提供了一组对测试有用的断言功能 |
缓冲 | 提供处理包含二进制数据的缓冲区的能力 |
child_process | 提供产生子进程的能力 |
安慰 | 提供一个简单的调试控制台 |
簇 | 允许将Node.js进程拆分为多个工作程序以利用多核系统 |
加密货币 | 提供加密功能 |
dgram | 提供UDP数据报套接字的实现 |
域名系统 | 提供名称解析和DNS查找 |
大事记 | 提供用于管理事件的API |
fs | 提供用于与文件系统进行交互的API |
http | 提供HTTP客户端/服务器实现 |
http2 | 提供HTTP / 2客户端/服务器实现 |
https | 提供HTTPS客户端/服务器实现 |
净 | 提供异步网络API |
操作系统 | 提供与操作系统相关的实用程序方法和属性 |
路径 | 提供用于处理文件和目录路径的实用程序 |
perf_hooks | 来收集绩效指标 |
处理 | 提供有关当前Node.js进程并对其进行控制的信息 |
请求参数 | 提供用于解析和格式化URL查询字符串的实用程序 |
阅读线 | 提供用于从Readable流中读取数据的接口 |
代表 | 提供Read-Eval-Print-Loop(REPL)实现,既可以作为独立程序使用,也可以在其他应用程序中使用 |
流 | 用于处理流数据的抽象接口 |
string_decoder | 提供用于将Buffer对象解码为字符串的API |
计时器 | 提供功能以计划要在将来某个时间段调用的功能 |
tls | 提供传输层安全性(TLS)和安全套接字层(SSL)协议的实现 |
tty | 提供用于在文本终端中执行I / O操作的功能 |
网址 | 提供用于URL解析和解析的实用程序 |
实用程序 | 支持Node.js内部API的需求,对应用程序和模块开发人员也很有用 |
v8 | 公开特定于Node.js二进制文件中内置的V8版本的API |
虚拟机 | 在V8虚拟机上下文中启用编译和运行代码 |
瓦西 | 提供WebAssembly系统接口规范的实现 |
工人 | 支持使用并行执行JavaScript的线程 |
zlib | 提供压缩功能 |
Check out my detailed tutorials on
查阅有关的详细教程
节点的模块度