W3C
school
文档首页
HTML
CSS
Javascript
Python
jQuery
NodeJS
PHP
Java
MySQL
Express
More »
开关
Node.js 4 LTS 官方文档
HTTP
abort event (http.ClientRequest)
aborted event (http.ClientRequest)
aborted event (http.IncomingMessage)
agent.destroy()
agent.freeSockets
agent.getName()
agent.maxFreeSockets
agent.maxSockets
agent.requests
agent.sockets
checkContinue 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.createClient()
http.createServer()
http.get()
http.globalAgent
http.IncomingMessage
http.METHODS
http.request()
http.Server
http.ServerResponse
http.STATUS_CODES
http_server.close()
http_server.listen()
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.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)
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)
exit event (Process)
message event (Process)
process
process.abort()
process.arch
process.argv
process.chdir()
process.config
process.connected
process.cpuUsage()
process.cwd()
process.disconnect()
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)
Buffer
buffer
Buffer
Buffer.alloc()
Buffer.allocUnsafe()
Buffer.allocUnsafeSlow()
Buffer.byteLength()
buffer.compare()
Buffer.compare()
Buffer.concat()
buffer.copy()
buffer.entries()
buffer.equals()
buffer.fill()
Buffer.from()
buffer.indexOf()
buffer.INSPECT_MAX_BYTES
Buffer.isBuffer()
Buffer.isEncoding()
buffer.keys()
buffer.length
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.toJSON()
buffer.toString()
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
Crypto
Certificate
certificate.exportChallenge()
certificate.exportPublicKey()
certificate.verifySpkac()
Cipher
cipher.final()
cipher.getAuthTag()
cipher.setAAD()
cipher.setAutoPadding()
cipher.update()
crypto
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.getCiphers()
crypto.getCurves()
crypto.getDiffieHellman()
crypto.getHashes()
crypto.pbkdf2()
crypto.pbkdf2Sync()
crypto.privateDecrypt()
crypto.privateEncrypt()
crypto.publicDecrypt()
crypto.publicEncrypt()
crypto.randomBytes()
crypto.setEngine()
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.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.path
watcher.close()
writeStream.bytesWritten
writeStream.path
Child Process
ChildProcess
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()
ref()
setImmediate()
setInterval()
setTimeout()
timers
unref()
Command Line Options
cli
TLS/SSL
clientError event (tls.Server)
CryptoStream
cryptoStream.bytesWritten
newSession event (tls.Server)
OCSPRequest event (tls.Server)
OCSPResponse event (TLS/SSL)
resumeSession event (tls.Server)
secure event (SecurePair)
secureConnect event (TLS/SSL)
secureConnection event (tls.Server)
SecurePair
tls
tls.connect()
tls.createSecureContext()
tls.createSecurePair()
tls.createServer()
tls.getCiphers()
tls.Server
tls.TLSSocket
tlsSocket.address()
tlsSocket.authorizationError
tlsSocket.authorized
tlsSocket.encrypted
tlsSocket.getCipher()
tlsSocket.getPeerCertificate()
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.maxConnections
tls_server.setTicketKeys()
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)
Net
close event (net.Server)
close event (net.Socket)
connect event (net.Socket)
connection event (net.Server)
data event (net.Socket)
drain event (net.Socket)
end event (net.Socket)
error event (net.Server)
error event (net.Socket)
listening event (net.Server)
lookup event (net.Socket)
net
net.connect()
net.createConnection()
net.createServer()
net.isIP()
net.isIPv4()
net.isIPv6()
net.Server
net.Socket
net_server.address()
net_server.close()
net_server.connections
net_server.getConnections()
net_server.listen()
net_server.maxConnections
net_server.ref()
net_server.unref()
net_socket.address()
net_socket.bufferSize
net_socket.bytesRead
net_socket.bytesWritten
net_socket.connect()
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)
Readline
close event (Readline)
Interface
interface.close()
interface.pause()
interface.prompt()
interface.question()
interface.resume()
interface.setPrompt()
interface.write()
line event (Readline)
pause event (Readline)
readline
readline.clearLine()
readline.clearScreenDown()
readline.createInterface()
readline.cursorTo()
readline.emitKeypressEvents()
readline.moveCursor()
resume event (Readline)
SIGCONT event (Readline)
SIGINT event (Readline)
SIGTSTP event (Readline)
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.isPaused()
readable.pause()
readable.pipe()
readable.push()
readable.read()
readable.resume()
readable.setEncoding()
readable.unpipe()
readable.unshift()
readable.wrap()
readable._read()
stream
stream.Duplex
stream.Duplex
stream.PassThrough
stream.push()
stream.read()
stream.Readable
stream.Readable
stream.Transform
stream.Transform
stream.Writable
stream.Writable
transform._flush()
transform._transform()
unpipe event (stream.Writable)
writable.cork()
writable.end()
writable.setDefaultEncoding()
writable.uncork()
writable.write()
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.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()
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.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.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.getMaxListeners()
eventemitter.listenerCount()
eventemitter.listeners()
eventemitter.on()
eventemitter.once()
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)
V8
getHeapSpaceStatistics()
getHeapStatistics()
setFlagsFromString()
v8
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.setTimeout()
https_server.timeout
Modules
module
module.children
module.exports
module.filename
module.id
module.loaded
module.parent
module.require()
OS
os
os.arch()
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()
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
readstream.isRaw
readstream.setRawMode()
resize event (WriteStream)
tty
tty.isatty()
tty.setRawMode()
WriteStream
writestream.columns
writestream.rows
VM
Script
script.runInContext()
script.runInNewContext()
script.runInThisContext()
vm
vm.createContext()
vm.isContext()
vm.runInContext()
vm.runInDebugContext()
vm.runInNewContext()
vm.runInThisContext()
String Decoder
StringDecoder
stringdecoder.end()
stringdecoder.write()
string_decoder
URL
url
url.format()
url.parse()
url.resolve()
Util
util
util.debug()
util.debuglog()
util.deprecate()
util.error()
util.format()
util.inherits()
util.inspect()
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.pump()
util.puts()
Zlib
zlib
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