W3C
school
文档首页
HTML
CSS
Javascript
Python
jQuery
NodeJS
PHP
Java
MySQL
Express
More »
开关
Node.js 官方文档
HTTP
abort event (http.ClientRequest)
aborted event (http.ClientRequest)
aborted event (http.IncomingMessage)
agent.createConnection()
agent.destroy()
agent.freeSockets
agent.getName()
agent.keepSocketAlive()
agent.maxFreeSockets
agent.maxSockets
agent.requests
agent.reuseSocket()
agent.sockets
checkContinue event (http.Server)
checkExpectation event (http.Server)
clientError event (http.Server)
close event (http.IncomingMessage)
close event (http.Server)
close event (http.ServerResponse)
connect event (http.ClientRequest)
connect event (http.Server)
connection event (http.Server)
continue event (http.ClientRequest)
finish event (http.ServerResponse)
http
http.Agent
http.ClientRequest
http.createServer()
http.get()
http.globalAgent
http.IncomingMessage
http.METHODS
http.request()
http.Server
http.ServerResponse
http.STATUS_CODES
http_server.close()
http_server.keepAliveTimeout
http_server.listen()
http_server.listening
http_server.maxHeadersCount
http_server.setTimeout()
http_server.timeout
message.destroy()
message.headers
message.httpVersion
message.method
message.rawHeaders
message.rawTrailers
message.setTimeout()
message.socket
message.statusCode
message.statusMessage
message.trailers
message.url
request event (http.Server)
request.abort()
request.aborted
request.end()
request.flushHeaders()
request.setNoDelay()
request.setSocketKeepAlive()
request.setTimeout()
request.write()
response event (http.ClientRequest)
response.addTrailers()
response.end()
response.finished
response.getHeader()
response.getHeaderNames()
response.getHeaders()
response.hasHeader()
response.headersSent
response.removeHeader()
response.sendDate
response.setHeader()
response.setTimeout()
response.statusCode
response.statusMessage
response.write()
response.writeContinue()
response.writeHead()
socket event (http.ClientRequest)
upgrade event (http.ClientRequest)
upgrade event (http.Server)
Async Hooks
after()
asyncHook.disable()
asyncHook.enable()
asyncResource.asyncId()
asyncResource.emitAfter()
asyncResource.emitBefore()
asyncResource.emitDestroy()
asyncResource.triggerId()
async_hooks
async_hooks.createHook()
async_hooks.currentId()
async_hooks.triggerId()
before()
destroy()
init()
resource
triggerid
type
Assert
assert
assert()
assert.deepEqual()
assert.deepStrictEqual()
assert.doesNotThrow()
assert.equal()
assert.fail()
assert.ifError()
assert.notDeepEqual()
assert.notDeepStrictEqual()
assert.notEqual()
assert.notStrictEqual()
assert.ok()
assert.strictEqual()
assert.throws()
Process
beforeExit event (Process)
disconnect event (Process)
exit event (Process)
message event (Process)
process
process.abort()
process.arch
process.argv
process.argv0
process.channel
process.chdir()
process.config
process.connected
process.cpuUsage()
process.cwd()
process.disconnect()
process.emitWarning()
process.env
process.execArgv
process.execPath
process.exit()
process.exitCode
process.getegid()
process.geteuid()
process.getgid()
process.getgroups()
process.getuid()
process.hrtime()
process.initgroups()
process.kill()
process.mainModule
process.memoryUsage()
process.nextTick()
process.pid
process.platform
process.release
process.send()
process.setegid()
process.seteuid()
process.setgid()
process.setgroups()
process.setuid()
process.stderr
process.stdin
process.stdout
process.title
process.umask()
process.uptime()
process.version
process.versions
rejectionHandled event (Process)
uncaughtException event (Process)
unhandledRejection event (Process)
warning event (Process)
Buffer
Buffer
buffer
Buffer.alloc()
Buffer.allocUnsafe()
Buffer.allocUnsafeSlow()
buffer.buffer
Buffer.byteLength()
Buffer.compare()
buffer.compare()
Buffer.concat()
buffer.copy()
buffer.entries()
buffer.equals()
buffer.fill()
Buffer.from()
buffer.includes()
buffer.indexOf()
buffer.INSPECT_MAX_BYTES
Buffer.isBuffer()
Buffer.isEncoding()
buffer.keys()
buffer.kMaxLength
buffer.lastIndexOf()
buffer.length
buffer.parent
buffer.readDoubleBE()
buffer.readDoubleLE()
buffer.readFloatBE()
buffer.readFloatLE()
buffer.readInt16BE()
buffer.readInt16LE()
buffer.readInt32BE()
buffer.readInt32LE()
buffer.readInt8()
buffer.readIntBE()
buffer.readIntLE()
buffer.readUInt16BE()
buffer.readUInt16LE()
buffer.readUInt32BE()
buffer.readUInt32LE()
buffer.readUInt8()
buffer.readUIntBE()
buffer.readUIntLE()
buffer.slice()
buffer.swap16()
buffer.swap32()
buffer.swap64()
buffer.toJSON()
buffer.toString()
buffer.transcode()
buffer.values()
buffer.write()
buffer.writeDoubleBE()
buffer.writeDoubleLE()
buffer.writeFloatBE()
buffer.writeFloatLE()
buffer.writeInt16BE()
buffer.writeInt16LE()
buffer.writeInt32BE()
buffer.writeInt32LE()
buffer.writeInt8()
buffer.writeIntBE()
buffer.writeIntLE()
buffer.writeUInt16BE()
buffer.writeUInt16LE()
buffer.writeUInt32BE()
buffer.writeUInt32LE()
buffer.writeUInt8()
buffer.writeUIntBE()
buffer.writeUIntLE()
buffer[]
SlowBuffer
Miscellaneous
C/C++ Addons
Debugger
Deprecated APIs
tracing
Crypto
Certificate
certificate.exportChallenge()
certificate.exportPublicKey()
certificate.verifySpkac()
Cipher
cipher.final()
cipher.getAuthTag()
cipher.setAAD()
cipher.setAutoPadding()
cipher.update()
crypto
crypto.constants
crypto.createCipher()
crypto.createCipheriv()
crypto.createCredentials()
crypto.createDecipher()
crypto.createDecipheriv()
crypto.createDiffieHellman()
crypto.createECDH()
crypto.createHash()
crypto.createHmac()
crypto.createSign()
crypto.createVerify()
crypto.DEFAULT_ENCODING
crypto.fips
crypto.getCiphers()
crypto.getCurves()
crypto.getDiffieHellman()
crypto.getHashes()
crypto.pbkdf2()
crypto.pbkdf2Sync()
crypto.privateDecrypt()
crypto.privateEncrypt()
crypto.publicDecrypt()
crypto.publicEncrypt()
crypto.randomBytes()
crypto.randomFill()
crypto.randomFillSync()
crypto.setEngine()
crypto.timingSafeEqual()
Decipher
decipher.final()
decipher.setAAD()
decipher.setAuthTag()
decipher.setAutoPadding()
decipher.update()
DiffieHellman
diffieHellman.computeSecret()
diffieHellman.generateKeys()
diffieHellman.getGenerator()
diffieHellman.getPrime()
diffieHellman.getPrivateKey()
diffieHellman.getPublicKey()
diffieHellman.setPrivateKey()
diffieHellman.setPublicKey()
diffieHellman.verifyError
ECDH
ecdh.computeSecret()
ecdh.generateKeys()
ecdh.getPrivateKey()
ecdh.getPublicKey()
ecdh.setPrivateKey()
ecdh.setPublicKey()
Hash
hash.digest()
hash.update()
Hmac
hmac.digest()
hmac.update()
Sign
sign.sign()
sign.update()
verifier.update()
verifier.verify()
Verify
File System
change event (fs.FSWatcher)
close event (fs.ReadStream)
close event (fs.WriteStream)
error event (fs.FSWatcher)
fs
fs.access()
fs.accessSync()
fs.appendFile()
fs.appendFileSync()
fs.chmod()
fs.chmodSync()
fs.chown()
fs.chownSync()
fs.close()
fs.closeSync()
fs.constants
fs.createReadStream()
fs.createWriteStream()
fs.exists()
fs.existsSync()
fs.fchmod()
fs.fchmodSync()
fs.fchown()
fs.fchownSync()
fs.fdatasync()
fs.fdatasyncSync()
fs.fstat()
fs.fstatSync()
fs.FSWatcher
fs.fsync()
fs.fsyncSync()
fs.ftruncate()
fs.ftruncateSync()
fs.futimes()
fs.futimesSync()
fs.lchmod()
fs.lchmodSync()
fs.lchown()
fs.lchownSync()
fs.link()
fs.linkSync()
fs.lstat()
fs.lstatSync()
fs.mkdir()
fs.mkdirSync()
fs.mkdtemp()
fs.mkdtempSync()
fs.open()
fs.openSync()
fs.read()
fs.readdir()
fs.readdirSync()
fs.readFile()
fs.readFileSync()
fs.readlink()
fs.readlinkSync()
fs.ReadStream
fs.readSync()
fs.realpath()
fs.realpathSync()
fs.rename()
fs.renameSync()
fs.rmdir()
fs.rmdirSync()
fs.stat()
fs.Stats
fs.statSync()
fs.symlink()
fs.symlinkSync()
fs.truncate()
fs.truncateSync()
fs.unlink()
fs.unlinkSync()
fs.unwatchFile()
fs.utimes()
fs.utimesSync()
fs.watch()
fs.watchFile()
fs.write()
fs.writeFile()
fs.writeFileSync()
fs.WriteStream
fs.writeSync()
open event (fs.ReadStream)
open event (fs.WriteStream)
readStream.bytesRead
readStream.path
watcher.close()
writeStream.bytesWritten
writeStream.path
Child Process
ChildProcess
childprocess.channel
childprocess.connected
childprocess.disconnect()
childprocess.kill()
childprocess.pid
childprocess.send()
childprocess.stderr
childprocess.stdin
childprocess.stdio
childprocess.stdout
child_process
child_process.exec()
child_process.execFile()
child_process.execFileSync()
child_process.execSync()
child_process.fork()
child_process.spawn()
child_process.spawnSync()
close event (ChildProcess)
disconnect event (ChildProcess)
error event (ChildProcess)
exit event (ChildProcess)
message event (ChildProcess)
options.detached
options.stdio
Timers
clearImmediate()
clearInterval()
clearTimeout()
Immediate
setImmediate()
setInterval()
setTimeout()
Timeout
timeout.ref()
timeout.unref()
timers
Command Line Options
cli
UDP/Datagram
close event (dgram.Socket)
dgram
dgram.createSocket()
dgram.Socket
dgram_socket.addMembership()
dgram_socket.address()
dgram_socket.bind()
dgram_socket.close()
dgram_socket.dropMembership()
dgram_socket.ref()
dgram_socket.send()
dgram_socket.setBroadcast()
dgram_socket.setMulticastLoopback()
dgram_socket.setMulticastTTL()
dgram_socket.setTTL()
dgram_socket.unref()
error event (dgram.Socket)
listening event (dgram.Socket)
message event (dgram.Socket)
Readline
close event (Interface)
Interface
interface.close()
interface.pause()
interface.prompt()
interface.question()
interface.resume()
interface.setPrompt()
interface.write()
line event (Interface)
pause event (Interface)
readline
readline.clearLine()
readline.clearScreenDown()
readline.createInterface()
readline.cursorTo()
readline.emitKeypressEvents()
readline.moveCursor()
resume event (Interface)
SIGCONT event (Interface)
SIGINT event (Interface)
SIGTSTP event (Interface)
Net
close event (Net)
close event (net.Socket)
connect event (net.Socket)
connection event (Net)
data event (net.Socket)
drain event (net.Socket)
end event (net.Socket)
error event (Net)
error event (net.Socket)
https.address()
https.close()
https.connections
https.getConnections()
https.listen()
https.listening
https.maxConnections
https.ref()
https.unref()
listening event (Net)
lookup event (net.Socket)
net
net.connect()
net.createConnection()
net.createServer()
net.isIP()
net.isIPv4()
net.isIPv6()
net.Server
net.Socket
net_socket.address()
net_socket.bufferSize
net_socket.bytesRead
net_socket.bytesWritten
net_socket.connect()
net_socket.connecting
net_socket.destroy()
net_socket.destroyed
net_socket.end()
net_socket.localAddress
net_socket.localPort
net_socket.pause()
net_socket.ref()
net_socket.remoteAddress
net_socket.remoteFamily
net_socket.remotePort
net_socket.resume()
net_socket.setEncoding()
net_socket.setKeepAlive()
net_socket.setNoDelay()
net_socket.setTimeout()
net_socket.unref()
net_socket.write()
timeout event (net.Socket)
Stream
close event (stream.Readable)
close event (stream.Writable)
data event (stream.Readable)
drain event (stream.Writable)
end event (stream.Readable)
error event (stream.Readable)
error event (stream.Writable)
finish event (stream.Writable)
pipe event (stream.Writable)
readable event (stream.Readable)
readable.destroy()
readable.isPaused()
readable.pause()
readable.pipe()
readable.push()
readable.push()
readable.read()
readable.read()
readable.resume()
readable.setEncoding()
readable.unpipe()
readable.unshift()
readable.wrap()
readable._read()
stream
stream.Duplex
stream.PassThrough
stream.Readable
stream.Transform
stream.Writable
transform.destroy()
transform._flush()
transform._transform()
unpipe event (stream.Writable)
writable.cork()
writable.destroy()
writable.end()
writable.setDefaultEncoding()
writable.uncork()
writable.write()
writable._destroy()
writable._final()
writable._write()
writable._writev()
Cluster
cluster
cluster.disconnect()
cluster.fork()
cluster.isMaster
cluster.isWorker
cluster.schedulingPolicy
cluster.settings
cluster.setupMaster()
cluster.worker
cluster.workers
disconnect event (Cluster)
disconnect event (Worker)
error event (Worker)
exit event (Cluster)
exit event (Worker)
fork event (Cluster)
listening event (Cluster)
listening event (Worker)
message event (Cluster)
message event (Worker)
online event (Cluster)
online event (Worker)
setup event (Cluster)
Worker
worker.disconnect()
worker.exitedAfterDisconnect
worker.id
worker.isConnected()
worker.isDead()
worker.kill()
worker.process
worker.send()
worker.suicide
Console
Console
console
console.assert()
console.dir()
console.error()
console.info()
console.log()
console.time()
console.timeEnd()
console.trace()
console.warn()
TLS/SSL
CryptoStream
cryptoStream.bytesWritten
newSession event (tls.Server)
OCSPRequest event (tls.Server)
OCSPResponse event (tls.TLSSocket)
resumeSession event (tls.Server)
secure event (SecurePair)
secureConnect event (tls.TLSSocket)
secureConnection event (tls.Server)
SecurePair
tls
tls.connect()
tls.createSecureContext()
tls.createSecurePair()
tls.createServer()
tls.DEFAULT_ECDH_CURVE
tls.getCiphers()
tls.Server
tls.TLSSocket
tlsClientError event (tls.Server)
tlsSocket.address()
tlsSocket.authorizationError
tlsSocket.authorized
tlsSocket.encrypted
tlsSocket.getCipher()
tlsSocket.getEphemeralKeyInfo()
tlsSocket.getPeerCertificate()
tlsSocket.getProtocol()
tlsSocket.getSession()
tlsSocket.getTLSTicket()
tlsSocket.localAddress
tlsSocket.localPort
tlsSocket.remoteAddress
tlsSocket.remoteFamily
tlsSocket.remotePort
tlsSocket.renegotiate()
tlsSocket.setMaxSendFragment()
tls_server.addContext()
tls_server.address()
tls_server.close()
tls_server.connections
tls_server.getTicketKeys()
tls_server.listen()
tls_server.setTicketKeys()
V8
deserializer.getWireFormatVersion()
deserializer.readDouble()
deserializer.readHeader()
deserializer.readRawBytes()
deserializer.readUint32()
deserializer.readUint64()
deserializer.readValue()
deserializer.transferArrayBuffer()
deserializer._readHostObject()
serializer.releaseBuffer()
serializer.transferArrayBuffer()
serializer.writeDouble()
serializer.writeHeader()
serializer.writeRawBytes()
serializer.writeUint32()
serializer.writeUint64()
serializer.writeValue()
serializer._getDataCloneError()
serializer._getSharedArrayBufferId()
serializer._setTreatArrayBufferViewsAsHostObjects()
serializer._writeHostObject()
v8
v8.cachedDataVersionTag()
v8.deserialize()
v8.getHeapSpaceStatistics()
v8.getHeapStatistics()
v8.serialize()
v8.setFlagsFromString()
DNS
dns
dns.getServers()
dns.lookup()
dns.lookup()
dns.lookupService()
dns.resolve()
dns.resolve4()
dns.resolve6()
dns.resolveCname()
dns.resolveMx()
dns.resolveNaptr()
dns.resolveNs()
dns.resolvePtr()
dns.resolveSoa()
dns.resolveSrv()
dns.resolveTxt()
dns.reverse()
dns.setServers()
Domain
Domain
domain
domain.add()
domain.bind()
domain.create()
domain.dispose()
domain.enter()
domain.exit()
domain.intercept()
domain.members
domain.remove()
domain.run()
Errors
Error
error.address
error.code
error.code
error.errno
error.message
error.path
error.port
error.stack
error.syscall
errors
RangeError
ReferenceError
SyntaxError
System Error
TypeError
Events
EventEmitter
eventemitter.addListener()
eventemitter.emit()
eventemitter.eventNames()
eventemitter.getMaxListeners()
eventemitter.listenerCount()
eventemitter.listeners()
eventemitter.on()
eventemitter.once()
eventemitter.prependListener()
eventemitter.prependOnceListener()
eventemitter.removeAllListeners()
eventemitter.removeListener()
eventemitter.setMaxListeners()
events
newListener event (EventEmitter)
removeListener event (EventEmitter)
REPL
exit event (REPLServer)
repl
repl.start()
REPLServer
replServer.defineCommand()
replServer.displayPrompt()
reset event (REPLServer)
Global Objects
global
globals
__dirname
__filename
HTTPS
https
https.Agent
https.close()
https.createServer()
https.get()
https.globalAgent
https.listen()
https.request()
https.Server
https_server.keepAliveTimeout
https_server.setTimeout()
https_server.timeout
Inspector
inspector
inspector.close()
inspector.open()
inspector.Session
inspector.url()
inspectorNotification event (inspector.Session)
session.connect()
session.disconnect()
session.post()
Modules
module
module.children
module.exports
module.filename
module.id
module.loaded
module.parent
module.require()
N-API
n-api
napi_async_complete_callback
napi_async_execute_callback
napi_callback
napi_callback_info
napi_call_function
napi_cancel_async_work
napi_close_escapable_handle_scope
napi_close_handle_scope
napi_coerce_to_bool
napi_coerce_to_number
napi_coerce_to_object
napi_coerce_to_string
napi_create_array
napi_create_arraybuffer
napi_create_array_with_length
napi_create_async_work
napi_create_buffer
napi_create_buffer_copy
napi_create_error
napi_create_external
napi_create_external_arraybuffer
napi_create_external_buffer
napi_create_function
napi_create_function
napi_create_number
napi_create_object
napi_create_range_error
napi_create_reference
napi_create_string_utf16
napi_create_string_utf8
napi_create_symbol
napi_create_typedarray
napi_create_type_error
napi_define_class
napi_define_properties
napi_delete_async_work
napi_delete_reference
napi_env
napi_escapable_handle_scope
napi_escape_handle
napi_extended_error_info
napi_finalize
napi_get_and_clear_last_exception
napi_get_arraybuffer_info
napi_get_array_length
napi_get_boolean
napi_get_buffer_info
napi_get_cb_info
napi_get_element
napi_get_global
napi_get_last_error_info
napi_get_named_property
napi_get_null
napi_get_property
napi_get_property_names
napi_get_prototype
napi_get_reference_value
napi_get_typedarray_info
napi_get_undefined
napi_get_value_bool
napi_get_value_double
napi_get_value_external
napi_get_value_int32
napi_get_value_int64
napi_get_value_string_utf16
napi_get_value_string_utf8
napi_get_value_uint32
napi_get_version
napi_handle_scope
napi_has_element
napi_has_named_property
napi_has_property
napi_instanceof
napi_is_array
napi_is_arraybuffer
napi_is_buffer
napi_is_construct_call
napi_is_error
napi_is_error
napi_is_exception_pending
napi_is_typedarray
napi_make_callback
napi_new_instance
napi_open_escapable_handle_scope
napi_open_handle_scope
napi_property_attributes
napi_property_descriptor
napi_queue_async_work
napi_ref
napi_reference_ref
napi_reference_unref
napi_set_element
napi_set_named_property
napi_set_property
napi_status
napi_strict_equals
napi_throw
napi_throw_error
napi_throw_range_error
napi_throw_type_error
napi_typedarray_type
napi_typeof
napi_unwrap
napi_value
napi_valuetype
napi_wrap
String Decoder
new StringDecoder([encoding])
stringDecoder.end()
stringDecoder.write()
string_decoder
OS
os
os.arch()
os.constants
os.cpus()
os.endianness()
os.EOL
os.freemem()
os.homedir()
os.hostname()
os.loadavg()
os.networkInterfaces()
os.platform()
os.release()
os.tmpdir()
os.totalmem()
os.type()
os.uptime()
os.userInfo()
Path
path
path.basename()
path.delimiter
path.dirname()
path.extname()
path.format()
path.isAbsolute()
path.join()
path.normalize()
path.parse()
path.posix
path.relative()
path.resolve()
path.sep
path.win32
Punycode
punycode
punycode.decode()
punycode.encode()
punycode.toASCII()
punycode.toUnicode()
punycode.ucs2
punycode.ucs2.decode()
punycode.ucs2.encode()
punycode.version
Query String
querystring
querystring.escape()
querystring.parse()
querystring.stringify()
querystring.unescape()
TTY
readStream.isRaw
readStream.setRawMode()
resize event (tty.WriteStream)
tty
tty.isatty()
tty.ReadStream
tty.WriteStream
writeStream.columns
writeStream.rows
VM
script.runInContext()
script.runInNewContext()
script.runInThisContext()
vm
vm.createContext()
vm.isContext()
vm.runInContext()
vm.runInDebugContext()
vm.runInNewContext()
vm.runInThisContext()
vm.Script
URL
url
URL
url.domainToASCII()
url.domainToUnicode()
url.format()
url.format()
url.hash
url.host
url.hostname
url.href
url.origin
url.parse()
url.password
url.pathname
url.port
url.protocol
url.resolve()
url.search
url.searchParams
url.toJSON()
url.toString()
url.username
urlObject.auth
urlObject.hash
urlObject.host
urlObject.hostname
urlObject.href
urlObject.path
urlObject.pathname
urlObject.port
urlObject.protocol
urlObject.query
urlObject.search
urlObject.slashes
URLSearchParams
urlSearchParams.append()
urlSearchParams.delete()
urlSearchParams.entries()
urlSearchParams.forEach()
urlSearchParams.get()
urlSearchParams.getAll()
urlSearchParams.has()
urlSearchParams.keys()
urlSearchParams.set()
urlSearchParams.sort()
urlSearchParams.toString()
urlSearchParams.values()
urlSearchParams[]()
Util
util
util.debug()
util.debuglog()
util.deprecate()
util.error()
util.format()
util.inherits()
util.inspect()
util.inspect.custom
util.inspect.defaultOptions
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.promisify()
util.promisify.custom
util.puts()
util._extend()
Zlib
zlib
zlib.bytesRead
zlib.constants
zlib.createDeflate()
zlib.createDeflateRaw()
zlib.createGunzip()
zlib.createGzip()
zlib.createInflate()
zlib.createInflateRaw()
zlib.createUnzip()
zlib.Deflate
zlib.deflate()
zlib.DeflateRaw
zlib.deflateRaw()
zlib.deflateRawSync()
zlib.deflateSync()
zlib.flush()
zlib.Gunzip
zlib.gunzip()
zlib.gunzipSync()
zlib.Gzip
zlib.gzip()
zlib.gzipSync()
zlib.Inflate
zlib.inflate()
zlib.InflateRaw
zlib.inflateRaw()
zlib.inflateRawSync()
zlib.inflateSync()
zlib.params()
zlib.reset()
zlib.Unzip
zlib.unzip()
zlib.unzipSync()
zlib.Zlib
Index
index