手机阅读

Node.js API速查表

包含最新Nodejs的API

可以通过按 Ctrl+F 搜索快速定位

命令行选项
命令行选项
node -
node –
node –abort-on-uncaught-exception
node –completion-bash
node –enable-fips
node –experimental-modules
node –experimental-repl-await
node –experimental-vm-modules
node –experimental-worker
node –force-fips
node –icu-data-dir=file
node –inspect-brk[=[host:]port]
node –inspect-port=[host:]port
node –inspect[=[host:]port]
node –loader=file
node –max-http-header-size=size
node –napi-modules
node –no-deprecation
node –no-force-async-hooks-checks
node –no-warnings
node –openssl-config=file
node –pending-deprecation
node –preserve-symlinks
node –preserve-symlinks-main
node –prof
node –prof-process
node –redirect-warnings=file
node –throw-deprecation
node –title=title
node –tls-cipher-list=list
node –trace-deprecation
node –trace-event-categories
node –trace-event-file-pattern
node –trace-events-enabled
node –trace-sync-io
node –trace-warnings
node –track-heap-objects
node –use-bundled-ca, –use-openssl-ca
node –v8-options
node –v8-pool-size=num
node –zero-fill-buffers
node –c/check
node –e/eval script
node -h/help
node -i/interactive
node -p/print script
node -r/require module
node -v/version
node NODE_DEBUG=module
node NODE_DEBUG_NATIVE=module
node NODE_DISABLE_COLORS=1
node NODE_EXTRA_CA_CERTS=file
node NODE_ICU_DATA=file
node NODE_NO_WARNINGS=1
node NODE_OPTIONS=options
node NODE_PATH=path
node NODE_PENDING_DEPRECATION=1
node NODE_PRESERVE_SYMLINKS=1
node NODE_REDIRECT_WARNINGS=file
node NODE_REPL_HISTORY=file
node NODE_TLS_REJECT_UNAUTHORIZED=value
node NODE_V8_COVERAGE=dir
node OPENSSL_CONF=file
node SSL_CERT_DIR=dir
node SSL_CERT_FILE=file
node UV_THREADPOOL_SIZE=size
广告区广告收入用于本站维护的支出
Buffer 缓冲器
Buffer 缓冲器
Buffer.from/alloc/allocUnsafe
Buffer –zero-fill-buffers
Buffer allocUnsafe/allocUnsafeSlow不安全
Buffer 与字符编码
Buffer TypedArray
Buffer 与迭代器
new Buffer(废弃)
Buffer.alloc
Buffer.allocUnsafe
Buffer.allocUnsafeSlow
Buffer.byteLength
Buffer.compare
Buffer.concat
Buffer.from
Buffer.isBuffer
Buffer.isEncoding
Buffer.poolSize
buf[index]
Buffer buf.buffer
Buffer buf.byteOffset
Buffer buf.compare
Buffer buf.copy
Buffer buf.entries
Buffer buf.equals
Buffer buf.fill
Buffer buf.includes
Buffer buf.indexOf
Buffer buf.keys
Buffer buf.lastIndexOf
Buffer buf.length
Buffer buf.parent
Buffer buf.readDoubleBE
Buffer buf.readDoubleLE
Buffer buf.readFloatBE
Buffer buf.readFloatLE
Buffer buf.readInt8
Buffer buf.readInt16BE
Buffer buf.readInt16LE
Buffer buf.readInt32BE
Buffer buf.readInt32LE
Buffer buf.readIntBE
Buffer buf.readIntLE
Buffer buf.readUInt8
Buffer buf.readUInt16BE
Buffer buf.readUInt16LE
Buffer buf.readUInt32BE
Buffer buf.readUInt32LE
Buffer buf.readUIntBE
Buffer buf.readUIntLE
Buffer buf.slice
Buffer buf.swap16
Buffer buf.swap32
Buffer buf.swap64
Buffer buf.toJSON
Buffer buf.toString
Buffer buf.values
Buffer buf.write
Buffer buf.writeDoubleBE
Buffer buf.writeDoubleLE
Buffer buf.writeFloatBE
Buffer buf.writeFloatLE
Buffer buf.writeInt8
Buffer buf.writeInt16BE
Buffer buf.writeInt16LE
Buffer buf.writeInt32BE
Buffer buf.writeInt32LE
Buffer buf.writeIntBE
Buffer buf.writeIntLE
Buffer buf.writeUInt8
Buffer buf.writeUInt16BE
Buffer buf.writeUInt16LE
Buffer buf.writeUInt32BE
Buffer buf.writeUInt32LE
Buffer buf.writeUIntBE
Buffer buf.writeUIntLE
buffer.INSPECT_MAX_BYTES
buffer.kMaxLength
buffer.transcode
Buffer SlowBuffer 类(废弃)
buffer 常量
buffer.constants.MAX_LENGTH
buffer.constants.MAX_STRING_LENGTH
加密 crypto
crypto 加密
crypto 检测是否支持 crypto
crypto Certificate 类
crypto Certificate.exportChallenge
crypto Certificate.exportPublicKey
crypto Certificate.verifySpkac
crypto certificate.exportChallenge
crypto certificate.exportPublicKey
crypto certificate.verifySpkac
crypto new crypto.Certificate()
crypto Cipher 类
crypto cipher.final
crypto cipher.setAAD
crypto cipher.getAuthTag
crypto cipher.setAutoPadding
crypto cipher.update
crypto Decipher 类
crypto decipher.final
crypto decipher.setAAD
crypto decipher.setAuthTag
crypto decipher.setAutoPadding
crypto decipher.update
crypto DiffieHellman 类
crypto diffieHellman.computeSecret
crypto diffieHellman.generateKeys
crypto diffieHellman.getGenerator
crypto diffieHellman.getPrime
crypto diffieHellman.getPrivateKey
crypto diffieHellman.getPublicKey
crypto diffieHellman.setPrivateKey
crypto diffieHellman.setPublicKey
crypto diffieHellman.verifyError
crypto ECDH 类
crypto ECDH.convertKey
crypto ecdh.computeSecret
crypto ecdh.generateKeys
crypto ecdh.getPrivateKey
crypto ecdh.getPublicKey
crypto ecdh.setPrivateKey
crypto ecdh.setPublicKey(废弃)
crypto Hash 类
crypto hash.digest
crypto hash.update
crypto Hmac 类
crypto hmac.digest
crypto hmac.update
crypto Sign 类
crypto sign.sign
crypto sign.update
crypto Verify 类
crypto verify.update
crypto verify.verify
crypto.constants
crypto.DEFAULT_ENCODING(废弃)
crypto.fips
crypto.createCipher
crypto.createCipheriv
crypto.createCredentials
crypto.createDecipher
crypto.createDecipheriv
crypto.createDiffieHellman
crypto.createECDH
crypto.createHash
crypto.createHmac
crypto.createSign
crypto.createVerify
crypto.generateKeyPair
crypto.generateKeyPairSync
crypto.getCiphers
crypto.getCurves
crypto.getDiffieHellman
crypto.getFips
crypto.getHashes
crypto.pbkdf2
crypto.pbkdf2Sync
crypto.privateDecrypt
crypto.privateEncrypt
crypto.publicDecrypt
crypto.publicEncrypt
crypto.randomBytes
crypto.randomFillSync
crypto.randomFill
crypto.scrypt
crypto.scryptSync
crypto.setEngine
crypto.setFips
crypto.timingSafeEqual
crypto 注意事项
crypto OpenSSL 选项
crypto OpenSSL 引擎的常量
crypto 其他 OpenSSL 常量
crypto 常量
Error 异常
Error 异常
Error 错误的冒泡和捕获
Error 回调中的 Error 参数
Error 类
new Error
Error.captureStackTrace
Error.stackTraceLimit
nodejs error.code
nodejs error.message
error.stack
AssertionError 类
RangeError 类
ReferenceError 类
SyntaxError 类
TypeError 类
异常与错误
系统错误
SystemError 类
error.address
error.code
error.dest
error.errno
error.info
error.message
error.path
error.port
error.syscall
常见的系统错误
错误码
ERR_AMBIGUOUS_ARGUMENT
ERR_ARG_NOT_ITERABLE
ERR_ASSERTION
ERR_ASYNC_CALLBACK
ERR_ASYNC_TYPE
ERR_BUFFER_OUT_OF_BOUNDS
ERR_BUFFER_TOO_LARGE
ERR_CANNOT_TRANSFER_OBJECT
ERR_CANNOT_WATCH_SIGINT
ERR_CHILD_CLOSED_BEFORE_REPLY
ERR_CHILD_PROCESS_IPC_REQUIRED
ERR_CHILD_PROCESS_STDIO_MAXBUFFER
ERR_CLOSED_MESSAGE_PORT
ERR_CONSOLE_WRITABLE_STREAM
ERR_CONSTRUCT_CALL_REQUIRED
ERR_CPU_USAGE
ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED
ERR_CRYPTO_ECDH_INVALID_FORMAT
ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY
ERR_CRYPTO_ENGINE_UNKNOWN
ERR_CRYPTO_FIPS_FORCED
ERR_CRYPTO_FIPS_UNAVAILABLE
ERR_CRYPTO_HASH_DIGEST_NO_UTF16
ERR_CRYPTO_HASH_FINALIZED
ERR_CRYPTO_HASH_UPDATE_FAILED
ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS
ERR_CRYPTO_INVALID_DIGEST
ERR_CRYPTO_INVALID_STATE
ERR_CRYPTO_PBKDF2_ERROR
ERR_CRYPTO_SCRYPT_INVALID_PARAMETER
ERR_CRYPTO_SCRYPT_NOT_SUPPORTED
ERR_CRYPTO_SIGN_KEY_REQUIRED
ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH
ERR_DNS_SET_SERVERS_FAILED
ERR_DOMAIN_CALLBACK_NOT_AVAILABLE
ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE
ERR_ENCODING_INVALID_ENCODED_DATA
ERR_ENCODING_NOT_SUPPORTED
ERR_FALSY_VALUE_REJECTION
ERR_FS_FILE_TOO_LARGE
ERR_FS_INVALID_SYMLINK_TYPE
ERR_HTTP_HEADERS_SENT
ERR_HTTP_INVALID_HEADER_VALUE
ERR_HTTP_INVALID_STATUS_CODE
ERR_HTTP_TRAILER_INVALID
ERR_HTTP2_ALTSVC_INVALID_ORIGIN
ERR_HTTP2_ALTSVC_LENGTH
ERR_HTTP2_CONNECT_AUTHORITY
ERR_HTTP2_CONNECT_PATH
ERR_HTTP2_CONNECT_SCHEME
ERR_HTTP2_ERROR
ERR_HTTP2_ERROR
ERR_HTTP2_GOAWAY_SESSION
ERR_HTTP2_HEADERS_AFTER_RESPOND
ERR_HTTP2_HEADERS_SENT
ERR_HTTP2_HEADER_SINGLE_VALUE
ERR_HTTP2_INFO_STATUS_NOT_ALLOWED
ERR_HTTP2_INVALID_CONNECTION_HEADERS
ERR_HTTP2_INVALID_HEADER_VALUE
ERR_HTTP2_INVALID_INFO_STATUS
ERR_HTTP2_INVALID_ORIGIN
ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH
ERR_HTTP2_INVALID_PSEUDOHEADER
ERR_HTTP2_INVALID_SESSION
ERR_HTTP2_INVALID_SETTING_VALUE
ERR_HTTP2_INVALID_STREAM
ERR_HTTP2_MAX_PENDING_SETTINGS_ACK
ERR_HTTP2_NESTED_PUSH
ERR_HTTP2_NO_SOCKET_MANIPULATION
ERR_HTTP2_ORIGIN_LENGTH
ERR_HTTP2_OUT_OF_STREAMS
ERR_HTTP2_PAYLOAD_FORBIDDEN
HTTP
HTTP
http.Agent 类
http new Agent
http agent.createConnection
http agent.keepSocketAlive
http agent.reuseSocket
http agent.destroy
http agent.freeSockets
http agent.getName
http agent.maxFreeSockets
http agent.maxSockets
http agent.requests
http agent.sockets
http ClientRequest 类
http ClientRequest abort 事件
http ClientRequest connect 事件
http ClientRequest continue 事件
http ClientRequest information 事件
http ClientRequest response 事件
http ClientRequest socket 事件
http ClientRequest timeout 事件
http ClientRequest upgrade 事件
http request.abort
http request.aborted
http request.connection
http request.end
http request.finished
http request.flushHeaders
http request.getHeader
http request.maxHeadersCount
http request.removeHeader
http request.setHeader
http request.setNoDelay
http request.setSocketKeepAlive
http request.setTimeout
http request.socket
http request.write
http.Server 类
http.Server checkContinue 事件
http.Server checkExpectation 事件
http.Server clientError 事件
http.Server close 事件
http.Server connect 事件
http.Server connection 事件
http.Server request 事件
http.Server upgrade 事件
http server.close
http server.listen
http server.listening
http server.maxHeadersCount
http server.headersTimeout
http server.setTimeout
http server.timeout
http server.keepAliveTimeout
http ServerResponse 类
http ServerResponse close 事件
http ServerResponse finish 事件
http response.addTrailers
http response.connection
http response.end
http response.finished
http response.getHeader
http response.getHeaderNames
http response.getHeaders
http response.hasHeader
http response.headersSent
http response.removeHeader
http response.sendDate
http response.setHeader
http response.setTimeout
http response.socket
http response.statusCode
http response.statusMessage
http response.write
http response.writeContinue
http response.writeHead
http response.writeProcessing
http.IncomingMessage 类
http.IncomingMessage aborted 事件
http.IncomingMessage close 事件
http message.aborted
http message.complete
http message.destroy
http message.headers
http message.httpVersion
http message.method
http message.rawHeaders
http message.rawTrailers
http message.setTimeout
http message.socket
http message.statusCode
http message.statusMessage
http message.trailers
message.url
http.METHODS
http.STATUS_CODES
http.createServer
http.get
http.globalAgent
http.maxHeaderSize
HTTP2
HTTP2
HTTP2 服务器端示例
HTTP2 客户端示例
Http2Session 类
Http2Session 与 Socket
Http2Session close 事件
Http2Session connect 事件
Http2Session error 事件
Http2Session frameError 事件
Http2Session goaway 事件
Http2Session localSettings 事件
Http2Session Event ping
Http2Session remoteSettings 事件
Http2Session stream 事件
Http2Session timeout 事件
http2session.alpnProtocol
http2session.close
http2session.closed
http2session.connecting
http2session.destroy
http2session.destroyed
http2session.encrypted
http2session.goaway
http2session.localSettings
http2session.originSet
http2session.pendingSettingsAck
http2session.ping
http2session.ref
http2session.remoteSettings
http2session.setTimeout
http2session.socket
http2session.state
http2session.settings
http2session.type
http2session.unref
ServerHttp2Session 类
serverhttp2session.altsvc
指定备选服务器
ClientHttp2Session 类
ClientHttp2Session altsvc 事件
ClientHttp2Session origin 事件
clienthttp2session.request
Http2Stream 类
Http2Stream 的生命周期
Http2Stream aborted 事件
Http2Stream close 事件
Http2Stream error 事件
Http2Stream frameError 事件
Http2Stream timeout 事件
Http2Stream trailers 事件
Http2Stream wantTrailers 事件
http2stream.aborted
http2stream.close
http2stream.closed
http2stream.destroyed
http2stream.endAfterHeaders
http2stream.pending
http2stream.priority
http2stream.rstCode
http2stream.sentHeaders
http2stream.sentInfoHeaders
http2stream.sentTrailers
http2stream.session
http2stream.setTimeout
http2stream.state
http2stream.sendTrailers
ClientHttp2Stream 类
ClientHttp2Stream continue 事件
ClientHttp2Stream headers 事件
ClientHttp2Stream push 事件
ClientHttp2Stream response 事件
ServerHttp2Stream 类
http2stream.additionalHeaders
http2stream.headersSent
http2stream.pushAllowed
http2stream.pushStream
http2stream.respond
http2stream.respondWithFD
http2stream.respondWithFile
Http2Server 类
Http2Server checkContinue 事件
Http2Server request 事件
Http2Server session 事件
Http2Server sessionError 事件
Http2Server stream 事件
Http2Server timeout 事件
server.close
server.setTimeout
Http2SecureServer 类
Http2SecureServer checkContinue 事件
Http2SecureServer request 事件
Http2SecureServer session 事件
Http2SecureServer sessionError 事件
Http2SecureServer stream 事件
Http2SecureServer timeout 事件
Http2SecureServer unknownProtocol 事件
server.close
server.setTimeout
http2.createServer
stream
stream 流
stream 流的类型
stream 对象模式
stream 缓冲
stream 用于消费流的 API
stream 可写流
stream.Writable 类
stream.Writable close 事件
stream.Writable drain 事件
stream.Writable error 事件
stream.Writable finish 事件
stream.Writable pipe 事件
stream.Writable unpipe 事件
stream writable.cork
writable.destroy
stream writable.end
stream writable.setDefaultEncoding
stream writable.uncork
stream writable.writable
stream writable.writableHighWaterMark
stream writable.writableLength
writable.write
stream 可读流
stream 两种读取模式
stream 三种状态
stream 选择一种接口风格
stream.Readable 类
stream.Readable close 事件
stream.Readable data 事件
stream.Readable end 事件
stream.Readable error 事件
stream.Readable readable 事件
readable.destroy
stream readable.isPaused
stream readable.pause
stream readable.pipe
readable.read
stream readable.readable
stream readable.readableHighWaterMark
stream readable.readableLength
stream readable.resume
stream readable.setEncoding
stream readable.unpipe
stream readable.unshift
stream readable.wrap
stream readable 试验
stream.Duplex 类
stream.Transform 类
transform.destroy
stream.finished
stream.pipeline
用于实现流的 API
stream 简单的实现
stream 实现可写流
new stream.Writable
writable._write
writable._writev
writable._destroy
writable._final
写入时的异常处理
stream 可写流的例子
stream 在可写流中解码 buffer
stream 实现可读流
new stream.Readable
readable._read
readable._destroy
readable.push
stream 读取时的异常处理
stream 可读流的例子
stream 实现双工流
new stream.Duplex
stream 双工流的例子
stream 对象模式的双工流
stream 实现转换流
new stream.Transform
Transform ‘finish’ 与 ‘end’ 事件
transform._flush
transform._transform
stream.PassThrough 类
stream 兼容旧版本的 Node.js
stream readable.read 注意事项
stream readable.push 注意事项
stream 调用 readable.setEncoding 之后 highWaterMark 的差异
util
util 实用工具
util.callbackify
util.debuglog
util.deprecate
util.format
util.formatWithOptions
util.getSystemErrorName
util.inherits
util.inspect
自定义 util.inspect 的颜色
自定义对象的查看函数
util.inspect.custom
util.inspect.defaultOptions
util.isDeepStrictEqual
util.promisify
自定义 promisify 函数
util.promisify.custom
util.TextDecoder 类
WHATWG 支持的字符编码
new TextDecoder
textDecoder.decode
textDecoder.encoding
textDecoder.fatal
textDecoder.ignoreBOM
util.TextEncoder 类
textEncoder.encode
textEncoder.encoding
util.types
util.types.isAnyArrayBuffer
util.types.isArgumentsObject
util.types.isArrayBuffer
util.types.isAsyncFunction
util.types.isBigInt64Array
util.types.isBigUint64Array
util.types.isBooleanObject
util.types.isBoxedPrimitive
util.types.isDataView
util.types.isDate
util.types.isExternal
util.types.isFloat32Array
util.types.isFloat64Array
util.types.isGeneratorFunction
util.types.isGeneratorObject
util.types.isInt8Array
util.types.isInt16Array
util.types.isInt32Array
util.types.isMap
util.types.isMapIterator
util.types.isModuleNamespaceObject
util.types.isNativeError
util.types.isNumberObject
util.types.isPromise
util.types.isProxy
util.types.isRegExp
util.types.isSet
util.types.isSetIterator
util.types.isSharedArrayBuffer
util.types.isStringObject
util.types.isSymbolObject
util.types.isTypedArray
util.types.isUint8Array
util.types.isUint8ClampedArray
util.types.isUint16Array
util.types.isUint32Array
util.types.isWeakMap
util.types.isWeakSet
util.types.isWebAssemblyCompiledModule
util 废弃API
util._extend 废弃
util.debug 废弃
util.error 废弃
util.isArray 废弃
util.isBoolean 废弃
util.isBuffer 废弃
util.isDate 废弃
util.isError 废弃
util.isFunction 废弃
util.isNull 废弃
util.isNullOrUndefined 废弃
util.isNumber 废弃
util.isObject 废弃
util.isPrimitive 废弃
util.isRegExp 废弃
util.isString 废弃
util.isSymbol 废弃
util.isUndefined 废弃
util.log 废弃
util.print 废弃
util.puts 废弃
C++插件-N-API
N-API
N-API ABI 稳定性的影响
N-API 用法
N-API 版本矩阵
基本的 N-API 数据类型
napi_status
napi_extended_error_info
napi_env
napi_value
napi_threadsafe_function
napi_threadsafe_function_release_mode
napi_threadsafe_function_call_mode
内存管理类型
napi_escapable_handle_scope
napi_escapable_handle_scope
napi_ref
回调类型
napi_callback_info
napi_callback
napi_finalize
napi_async_execute_callback
napi_async_complete_callback
napi_threadsafe_function_call_js
N-API 错误处理
napi_get_last_error_info
N-API 异常
napi_throw
napi_throw_error
napi_throw_type_error
napi_throw_range_error
N-API napi_is_error
napi_create_error
napi_create_type_error
napi_create_range_error
napi_get_and_clear_last_exception
napi_is_exception_pending
napi_fatal_exception
N-API 致命错误
N-API napi_fatal_error
N-API 对象的生命周期管理
N-API 使句柄的生命期限短于原生方法
N-API napi_open_handle_scope
N-API napi_close_handle_scope
N-API napi_open_escapable_handle_scope
N-API napi_close_escapable_handle_scope
N-API napi_escape_handle
N-API 对象引用的生命期限长于原生方法
N-API napi_create_reference
N-API napi_delete_reference
N-API napi_reference_ref
N-API napi_reference_unref
N-API napi_get_reference_value
N-API 当前 Node.js 实例退出时清除
N-API napi_add_env_cleanup_hook
N-API napi_remove_env_cleanup_hook
N-API 模块注册
N-API 处理 JavaScript 值
N-API 枚举类型
N-API napi_valuetype
N-API napi_typedarray_type
N-API 创建对象的函数
N-API napi_create_array
N-API napi_create_array_with_length
N-API napi_create_arraybuffer
N-API napi_create_buffer
N-API napi_create_buffer_copy
N-API napi_create_external
N-API napi_create_external_arraybuffer
N-API napi_create_external_buffer
N-API napi_create_object
N-API napi_create_symbol
N-API napi_create_typedarray
N-API napi_create_dataview
N-API 将 C 类型转换为 N-API 的函数
N-API napi_create_uint32
N-API napi_create_int32
N-API napi_create_int64
N-API napi_create_double
N-API napi_create_bigint_int64
N-API napi_create_bigint_uint64
N-API napi_create_bigint_words
N-API napi_create_string_latin1
N-API napi_create_string_utf16
N-API napi_create_string_utf8
N-API将 N-API 转换为 C 类型的函数
N-API napi_get_arraybuffer_info
N-API napi_get_arraybuffer_info
N-API napi_get_buffer_info
N-API napi_get_prototype
N-API napi_get_typedarray_info
N-API napi_get_dataview_info
N-API napi_get_value_bool
N-API napi_get_value_double
N-API napi_get_value_bigint_int64
N-API napi_get_value_bigint_uint64
N-API napi_get_value_bigint_words
N-API napi_get_value_external
N-API napi_get_value_int32
N-API napi_get_value_int64
N-API napi_get_value_string_latin1
N-API napi_get_value_string_utf8
N-API napi_get_value_string_utf16
Error
ERR_HTTP2_PING_CANCEL
ERR_HTTP2_PING_LENGTH
ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED
ERR_HTTP2_PUSH_DISABLED
ERR_HTTP2_SEND_FILE
ERR_HTTP2_SEND_FILE_NOSEEK
ERR_HTTP2_SESSION_ERROR
ERR_HTTP2_SETTINGS_CANCEL
ERR_HTTP2_SOCKET_BOUND
ERR_HTTP2_SOCKET_UNBOUND
ERR_HTTP2_STATUS_101
ERR_HTTP2_STATUS_INVALID
ERR_HTTP2_STREAM_CANCEL
ERR_HTTP2_STREAM_ERROR
ERR_HTTP2_STREAM_SELF_DEPENDENCY
ERR_HTTP2_TRAILERS_ALREADY_SENT
ERR_HTTP2_TRAILERS_NOT_READY
ERR_HTTP2_UNSUPPORTED_PROTOCOL
ERR_INDEX_OUT_OF_RANGE
ERR_INSPECTOR_ALREADY_CONNECTED
ERR_INSPECTOR_CLOSED
ERR_INSPECTOR_NOT_AVAILABLE
ERR_INSPECTOR_NOT_CONNECTED
ERR_INVALID_ADDRESS_FAMILY
ERR_INVALID_ARG_TYPE
ERR_INVALID_ARG_VALUE
ERR_INVALID_ARRAY_LENGTH
ERR_INVALID_ASYNC_ID
ERR_INVALID_BUFFER_SIZE
ERR_INVALID_CALLBACK
ERR_INVALID_CHAR
ERR_INVALID_CURSOR_POS
ERR_INVALID_DOMAIN_NAME
ERR_INVALID_FD
ERR_INVALID_FD_TYPE
ERR_INVALID_FILE_URL_HOST
ERR_INVALID_FILE_URL_PATH
ERR_INVALID_HANDLE_TYPE
ERR_INVALID_HTTP_TOKEN
ERR_INVALID_IP_ADDRESS
ERR_INVALID_OPT_VALUE
ERR_INVALID_OPT_VALUE_ENCODING
ERR_INVALID_PERFORMANCE_MARK
ERR_INVALID_PROTOCOL
ERR_INVALID_REPL_EVAL_CONFIG
ERR_INVALID_RETURN_PROPERTY
ERR_INVALID_RETURN_PROPERTY_VALUE
ERR_INVALID_RETURN_VALUE
ERR_INVALID_SYNC_FORK_INPUT
ERR_INVALID_THIS
ERR_INVALID_TRANSFER_OBJECT
ERR_INVALID_TUPLE
ERR_INVALID_URI
ERR_INVALID_URL
ERR_INVALID_URL_SCHEME
ERR_IPC_CHANNEL_CLOSED
ERR_IPC_DISCONNECTED
ERR_IPC_ONE_PIPE
ERR_IPC_SYNC_FORK
ERR_MEMORY_ALLOCATION_FAILED
ERR_METHOD_NOT_IMPLEMENTED
ERR_MISSING_ARGS
ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST
ERR_MISSING_MODULE
ERR_MISSING_PLATFORM_FOR_WORKER
ERR_MODULE_RESOLUTION_LEGACY
ERR_MULTIPLE_CALLBACK
ERR_NAPI_CONS_FUNCTION
ERR_NAPI_INVALID_DATAVIEW_ARGS
ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT
ERR_NAPI_INVALID_TYPEDARRAY_LENGTH
ERR_NAPI_TSFN_CALL_JS
ERR_NAPI_TSFN_GET_UNDEFINED
ERR_NAPI_TSFN_START_IDLE_LOOP
ERR_NAPI_TSFN_STOP_IDLE_LOOP
ERR_NO_CRYPTO
ERR_NO_ICU
ERR_NO_LONGER_SUPPORTED
ERR_OUT_OF_RANGE
ERR_REQUIRE_ESM
ERR_SCRIPT_EXECUTION_INTERRUPTED
ERR_SERVER_ALREADY_LISTEN
ERR_SERVER_NOT_RUNNING
ERR_SOCKET_ALREADY_BOUND
ERR_SOCKET_BAD_BUFFER_SIZE
ERR_SOCKET_BAD_PORT
ERR_SOCKET_BAD_TYPE
ERR_SOCKET_BUFFER_SIZE
ERR_SOCKET_CANNOT_SEND
ERR_SOCKET_CLOSED
ERR_SOCKET_DGRAM_NOT_RUNNING
ERR_STREAM_CANNOT_PIPE
ERR_STREAM_DESTROYED
ERR_STREAM_NULL_VALUES
ERR_STREAM_PREMATURE_CLOSE
ERR_STREAM_PUSH_AFTER_EOF
ERR_STREAM_UNSHIFT_AFTER_END_EVENT
ERR_STREAM_WRAP
ERR_STREAM_WRITE_AFTER_END
ERR_STRING_TOO_LONG
ERR_SYSTEM_ERROR
ERR_TLS_CERT_ALTNAME_INVALID
ERR_TLS_DH_PARAM_SIZE
ERR_TLS_HANDSHAKE_TIMEOUT
ERR_TLS_RENEGOTIATE
ERR_TLS_RENEGOTIATION_DISABLED
ERR_TLS_REQUIRED_SERVER_NAME
ERR_TLS_SESSION_ATTACK
ERR_TLS_SNI_FROM_SERVER
ERR_TRACE_EVENTS_CATEGORY_REQUIRED
ERR_TRACE_EVENTS_UNAVAILABLE
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER
ERR_TRANSFORM_ALREADY_TRANSFORMING
ERR_TRANSFORM_WITH_LENGTH_0
ERR_TTY_INIT_FAILED
ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET
ERR_UNESCAPED_CHARACTERS
ERR_UNHANDLED_ERROR
ERR_UNKNOWN_BUILTIN_MODULE
ERR_UNKNOWN_ENCODING
ERR_UNKNOWN_FILE_EXTENSION
ERR_UNKNOWN_MODULE_FORMAT
ERR_UNKNOWN_SIGNAL
ERR_UNKNOWN_STDIN_TYPE
ERR_UNKNOWN_STREAM_TYPE
ERR_V8BREAKITERATOR
ERR_VALID_PERFORMANCE_ENTRY_TYPE
ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING
ERR_VM_MODULE_ALREADY_LINKED
ERR_VM_MODULE_DIFFERENT_CONTEXT
ERR_VM_MODULE_LINKING_ERRORED
ERR_VM_MODULE_NOT_LINKED
ERR_VM_MODULE_NOT_MODULE
ERR_VM_MODULE_STATUS
ERR_WORKER_PATH
ERR_WORKER_UNSERIALIZABLE_ERROR
ERR_WORKER_UNSUPPORTED_EXTENSION
ERR_ZLIB_INITIALIZATION_FAILED
HPE_HEADER_OVERFLOW
MODULE_NOT_FOUND
废弃的错误码
废弃/ERR_HTTP2_FRAME_ERROR
废弃/ERR_HTTP2_HEADERS_OBJECT
废弃/ERR_HTTP2_HEADER_REQUIRED
废弃/ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND
废弃/ERR_HTTP2_STREAM_CLOSED
废弃/ERR_HTTP_INVALID_CHAR
废弃/ERR_NAPI_CONS_PROTOTYPE_OBJECT
废弃/ERR_OUTOFMEMORY
废弃/ERR_PARSE_HISTORY_DATA
废弃/ERR_STDERR_CLOSE
废弃/ERR_STDOUT_CLOSE
废弃/ERR_STREAM_READ_NOT_IMPLEMENTED
废弃/ERR_TLS_RENEGOTIATION_FAILED
废弃/ERR_UNKNOWN_BUILTIN_MODULE
废弃/ERR_VALUE_OUT_OF_RANGE
废弃/ERR_ZLIB_BINDING_CLOSED
废弃/ERR_FS_WATCHER_ALREADY_STARTED
废弃/ERR_FS_WATCHER_NOT_STARTED
废弃/ERR_HTTP2_ALREADY_SHUTDOWN
废弃/ERR_HTTP2_ERROR
废弃/ERR_INVALID_REPL_HISTORY
废弃/ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK
废弃/ERR_STREAM_HAS_STRINGDECODER
废弃/ERR_STRING_TOO_LARGE
C++插件-N-API
N-API napi_get_value_uint32
N-API 获取全局实例的函数
N-API napi_get_boolean
N-API napi_get_global
N-API napi_get_null
N-API napi_get_undefined
N-API 处理 JavaScript 值的抽象操作
N-API napi_coerce_to_bool
N-API napi_coerce_to_number
N-API napi_coerce_to_object
N-API napi_coerce_to_string
N-API napi_typeof
N-API napi_instanceof
N-API napi_is_array
N-API napi_is_arraybuffer
N-API napi_is_buffer
N-API napi_is_error
N-API napi_is_typedarray
N-API napi_is_dataview
N-API napi_strict_equals
N-API 处理 JavaScript 属性
N-API 构造
N-API napi_property_attributes
N-API napi_property_descriptor
N-API 函数
N-API napi_get_property_names
N-API napi_set_property
N-API napi_get_property
N-API napi_has_property
N-API napi_delete_property
N-API napi_has_own_property
N-API napi_set_named_property
N-API napi_get_named_property
N-API napi_has_named_property
N-API napi_set_element
N-API napi_get_element
N-API napi_has_element
N-API napi_delete_element
N-API napi_define_properties
N-API 处理 JavaScript 函数
N-API napi_call_function
N-API napi_create_function
N-API napi_get_cb_info
N-API napi_get_new_target
N-API napi_new_instance
N-API 对象封装
N-API napi_define_class
N-API napi_wrap
N-API napi_unwrap
N-API napi_remove_wrap
N-API napi_add_finalizer
N-API 简单的异步操作
N-API napi_create_async_work
N-API napi_delete_async_work
N-API napi_queue_async_work
N-API napi_cancel_async_work
N-API 自定义的异步操作
N-API napi_async_init
N-API napi_async_destroy
N-API napi_make_callback
N-API napi_open_callback_scope
N-API napi_close_callback_scope
N-API 版本管理
N-API napi_get_node_version
N-API napi_get_version
N-API 内存管理
N-API napi_adjust_external_memory
N-API Promise
N-API napi_create_promise
N-API napi_resolve_deferred
N-API napi_reject_deferred
N-API napi_is_promise
N-API 执行脚本
N-API napi_run_script
N-API libuv 事件循环
N-API napi_get_uv_event_loop
N-API 异步线程-安全的函数调用
N-API napi_create_threadsafe_function
N-API napi_get_threadsafe_function_context
N-API napi_call_threadsafe_function
N-API napi_acquire_threadsafe_function
N-API napi_release_threadsafe_function
N-API napi_ref_threadsafe_function
N-API napi_unref_threadsafe_function