Hubwiz.com
|
Online Course
|
API Manual
NodeJS API Manual
Guide(103)
Module(31)
Method(558)
Class(59)
Property(123)
Event(89)
Option(21)
Variable(14)
Guide
Addons
Hello world
Building
Linking to Node.js' own dependencies
Loading Addons using require()
Native Abstractions for Node.js
Addon examples
Function arguments
Callbacks
Object factory
Function factory
Wrapping C++ objects
Factory of wrapped objects
Passing wrapped objects around
AtExit hooks
void AtExit(callback, args)
Buffer.from(), Buffer.alloc(), and Buffer.allocUnsafe()
The --zero-fill-buffers command line option
"What makes Buffer.allocUnsafe(size) and Buffer.allocUnsafeSlow(size) ""unsafe""?"
Buffers and Character Encodings
Buffers and TypedArray
Buffers and ES6 iteration
Asynchronous Process Creation
Synchronous Process Creation
maxBuffer and Unicode
Command Line Options
Synopsis
Options
Environment Variables
How It Works
Asynchronous vs Synchronous Consoles
Determining if crypto support is unavailable
Notes
Legacy Streams API (pre Node.js v0.10)
Recent ECDH Changes
Support for weak or compromised algorithms
Debugger
Watchers
Commands reference
Stepping
Breakpoints
Execution control
Various
Advanced Usage
Supported getaddrinfo flags
Error codes
Implementation considerations
About this Documentation
Stability Index
JSON Output
Syscalls and man pages
Warning: Don't Ignore Errors!
Additions to Error objects
Implicit Binding
Explicit Binding
Errors
Error Propagation and Interception
Exceptions vs. Errors
System Errors
Common System Errors
Asynchronous vs. Synchronous
Handling events only once
Error events
Buffer API
Stat Time Values
Global Objects
Accessing the main module
Addenda: Package Manager Tips
All Together...
Caching
Core Modules
Cycles
File Modules
Folders as Modules
Loading from the global folders
The module Object
exports alias
Emitting custom warnings
Emitting custom deprecation warnings
Exit Codes
Avoiding duplicate warnings
Events
Environment Variable Options
Persistent History
REPL Features
API for Stream Consumers
API for Stream Implementors
Events: 'finish' and 'end'
Simplified Constructor API
Streams: Under the Hood
Synopsis
ALPN, NPN and SNI
Client-initiated renegotiation attack mitigation
Modifying the Default TLS Cipher suite
Perfect Forward Secrecy
URL Parsing
Escaped Characters
Example: Run a Server within a VM
Memory Usage Tuning
Flushing
Constants
Class Options
Convenience Methods
Module
assert
buffer
child_process
cluster
console
crypto
dgram
dns
domain
events
fs
http
https
module
net
os
path
punycode
querystring
readline
repl
stream
stringdecoder
timers
tls_(ssl)
tty
url
util
v8
vm
zlib
Method
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
new Buffer
Buffer.alloc
Buffer.allocUnsafe
Buffer.allocUnsafeSlow
Buffer.byteLength
Buffer.compare
Buffer.concat
Buffer.from
Buffer.isBuffer
Buffer.isEncoding
buf.compare
buf.copy
buf.entries
buf.equals
buf.fill
buf.indexOf
buf.includes
buf.keys
buf.lastIndexOf
buf.readDoubleBE
buf.readDoubleLE
buf.readFloatBE
buf.readFloatLE
buf.readInt8
buf.readInt16BE
buf.readInt16LE
buf.readInt32BE
buf.readInt32LE
buf.readIntBE
buf.readIntLE
buf.readUInt8
buf.readUInt16BE
buf.readUInt16LE
buf.readUInt32BE
buf.readUInt32LE
buf.readUIntBE
buf.readUIntLE
buf.slice
buf.swap16
buf.swap32
buf.toString
buf.toJSON
buf.values
buf.write
buf.writeDoubleBE
buf.writeDoubleLE
buf.writeFloatBE
buf.writeFloatLE
buf.writeInt8
buf.writeInt16BE
buf.writeInt16LE
buf.writeInt32BE
buf.writeInt32LE
buf.writeIntBE
buf.writeIntLE
buf.writeUInt8
buf.writeUInt16BE
buf.writeUInt16LE
buf.writeUInt32BE
buf.writeUInt32LE
buf.writeUIntBE
buf.writeUIntLE
new SlowBuffer
child_process.exec
child_process.execFile
child_process.fork
child_process.spawn
child_process.execFileSync
child_process.execSync
child_process.spawnSync
child.disconnect
child.kill
child.send
worker.disconnect
worker.isConnected
worker.isDead
worker.kill
worker.send
cluster.disconnect
cluster.fork
cluster.setupMaster
new Console
console.assert
console.dir
console.error
console.info
console.log
console.time
console.timeEnd
console.trace
console.warn
new crypto.Certificate
certificate.exportChallenge
certificate.exportPublicKey
certificate.verifySpkac
cipher.final
cipher.setAAD
cipher.getAuthTag
cipher.setAutoPadding
cipher.update
decipher.final
decipher.setAAD
decipher.setAuthTag
decipher.setAutoPadding
decipher.update
diffieHellman.computeSecret
diffieHellman.generateKeys
diffieHellman.getGenerator
diffieHellman.getPrime
diffieHellman.getPrivateKey
diffieHellman.getPublicKey
diffieHellman.setPrivateKey
diffieHellman.setPublicKey
ecdh.computeSecret
ecdh.generateKeys
ecdh.getPrivateKey
ecdh.getPublicKey
ecdh.setPrivateKey
ecdh.setPublicKey
hash.digest
hash.update
hmac.digest
hmac.update
sign.sign
sign.update
verifier.update
verifier.verify
crypto.createCipher
crypto.createCipheriv
crypto.createCredentials
crypto.createDecipher
crypto.createDecipheriv
crypto.createDiffieHellman
crypto.createECDH
crypto.createHash
crypto.createHmac
crypto.createSign
crypto.createVerify
crypto.getCiphers
crypto.getCurves
crypto.getDiffieHellman
crypto.getHashes
crypto.pbkdf2
crypto.pbkdf2Sync
crypto.privateDecrypt
crypto.privateEncrypt
crypto.publicDecrypt
crypto.publicEncrypt
crypto.randomBytes
crypto.setEngine
socket.addMembership
socket.address
socket.bind
socket.close
socket.dropMembership
socket.send
socket.setBroadcast
socket.setMulticastLoopback
socket.setMulticastTTL
socket.setTTL
socket.ref
socket.unref
dgram.createSocket
dns.getServers
dns.lookup
dns.lookupService
dns.resolve
dns.resolve4
dns.resolve6
dns.resolveCname
dns.resolveMx
dns.resolveNs
dns.resolveSoa
dns.resolveSrv
dns.resolvePtr
dns.resolveTxt
dns.reverse
dns.setServers
domain.create
domain.run
domain.add
domain.remove
domain.bind
domain.intercept
domain.enter
domain.exit
domain.dispose
new Error
Error.captureStackTrace
EventEmitter.listenerCount
emitter.addListener
emitter.emit
emitter.eventNames
emitter.getMaxListeners
emitter.listenerCount
emitter.listeners
emitter.on
emitter.once
emitter.prependListener
emitter.prependOnceListener
emitter.removeAllListeners
emitter.removeListener
emitter.setMaxListeners
watcher.close
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.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.readSync
fs.realpath
fs.realpathSync
fs.rename
fs.renameSync
fs.rmdir
fs.rmdirSync
fs.stat
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.writeSync
clearImmediate
clearInterval
clearTimeout
require
require.resolve
setImmediate
setInterval
setTimeout
new Agent
agent.createConnection
agent.destroy
agent.getName
request.abort
request.end
request.flushHeaders
request.setNoDelay
request.setSocketKeepAlive
request.setTimeout
request.write
server.close
server.listen
server.setTimeout
response.addTrailers
response.end
response.getHeader
response.removeHeader
response.setHeader
response.setTimeout
response.write
response.writeContinue
response.writeHead
message.setTimeout
http.createClient
http.createServer
http.get
http.request
server.setTimeout
https.createServer
server.close
server.listen
https.get
https.request
module.require
server.address
server.close
server.getConnections
server.listen
server.ref
server.unref
new net.Socket
socket.address
socket.connect
socket.destroy
socket.end
socket.pause
socket.ref
socket.resume
socket.setEncoding
socket.setKeepAlive
socket.setNoDelay
socket.setTimeout
socket.unref
socket.write
net.connect
net.createConnection
net.createServer
net.isIP
net.isIPv4
net.isIPv6
os.arch
os.cpus
os.endianness
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.basename
path.dirname
path.extname
path.format
path.isAbsolute
path.join
path.normalize
path.parse
path.relative
path.resolve
process.abort
process.chdir
process.cwd
process.disconnect
process.emitWarning
process.exit
process.getegid
process.geteuid
process.getgid
process.getgroups
process.getuid
process.hrtime
process.initgroups
process.kill
process.memoryUsage
process.nextTick
process.send
process.setegid
process.seteuid
process.setgid
process.setgroups
process.setuid
process.umask
process.uptime
punycode.decode
punycode.encode
punycode.toASCII
punycode.toUnicode
punycode.ucs2.decode
punycode.ucs2.encode
querystring.parse
querystring.stringify
rl.close
rl.pause
rl.prompt
rl.question
rl.resume
rl.setPrompt
rl.write
readline.clearLine
readline.clearScreenDown
readline.createInterface
readline.cursorTo
readline.emitKeypressEvents
readline.moveCursor
replServer.defineCommand
replServer.displayPrompt
repl.start
readable.isPaused
readable.pause
readable.pipe
readable.read
readable.resume
readable.setEncoding
readable.unpipe
readable.unshift
readable.wrap
writable.cork
writable.end
writable.setDefaultEncoding
writable.uncork
writable.write
new stream.Duplex
new stream.Readable
readable._read
readable.push
new stream.Transform
transform._flush
transform._transform
new stream.Writable
writable._write
writable._writev
stream.read
stream.push
decoder.end
decoder.write
clearImmediate
clearInterval
clearTimeout
ref
setImmediate
setInterval
setTimeout
unref
server.addContext
server.address
server.close
server.getTicketKeys
server.listen
server.setTicketKeys
new tls.TLSSocket
tlsSocket.address
tlsSocket.getCipher
tlsSocket.getEphemeralKeyInfo
tlsSocket.getPeerCertificate
tlsSocket.getProtocol
tlsSocket.getSession
tlsSocket.getTLSTicket
tlsSocket.renegotiate
tlsSocket.setMaxSendFragment
tls.connect
tls.createSecureContext
tls.createSecurePair
tls.createServer
tls.getCiphers
rs.setRawMode
tty.isatty
url.format
url.parse
url.resolve
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.puts
util._extend
getHeapStatistics
getHeapSpaceStatistics
setFlagsFromString
new vm.Script
script.runInContext
script.runInNewContext
script.runInThisContext
vm.createContext
vm.isContext
vm.runInContext
vm.runInDebugContext
vm.runInNewContext
vm.runInThisContext
zlib.flush
zlib.params
zlib.reset
zlib.createDeflate
zlib.createDeflateRaw
zlib.createGunzip
zlib.createGzip
zlib.createInflate
zlib.createInflateRaw
zlib.createUnzip
zlib.deflate
zlib.deflateSync
zlib.deflateRaw
zlib.deflateRawSync
zlib.gunzip
zlib.gunzipSync
zlib.gzip
zlib.gzipSync
zlib.inflate
zlib.inflateSync
zlib.inflateRaw
zlib.inflateRawSync
zlib.unzip
zlib.unzipSync
Class
Buffer
SlowBuffer
ChildProcess
Worker
Console
Certificate
Cipher
Decipher
DiffieHellman
ECDH
Hash
Hmac
Sign
Verify
dgram.Socket
Domain
Error
RangeError
ReferenceError
SyntaxError
TypeError
System
EventEmitter
fs.FSWatcher
fs.ReadStream
fs.Stats
fs.WriteStream
http.Agent
http.ClientRequest
http.Server
http.ServerResponse
http.IncomingMessage
https.Agent
https.Server
net.Server
net.Socket
Interface
REPLServer
stream.Duplex
stream.Readable
stream.Transform
stream.Writable
stream.PassThrough
StringDecoder
CryptoStream
SecurePair
tls.Server
tls.TLSSocket
ReadStream
WriteStream
Script
zlib.Deflate
zlib.DeflateRaw
zlib.Gunzip
zlib.Gzip
zlib.Inflate
zlib.InflateRaw
zlib.Unzip
zlib.Zlib
Property
buf[index]
buf.length
buffer.INSPECT_MAX_BYTES
options.detached
options.stdio
child.connected
child.pid
child.stderr
child.stdin
child.stdio
child.stdout
worker.exitedAfterDisconnect
worker.id
worker.process
worker.suicide
cluster.isMaster
cluster.isWorker
cluster.schedulingPolicy
cluster.settings
cluster.worker
cluster.workers
diffieHellman.verifyError
crypto.DEFAULT_ENCODING
crypto.fips
domain.members
Error.stackTraceLimit
error.message
error.stack
error.code
error.errno
error.syscall
EventEmitter.defaultMaxListeners
readStream.path
writeStream.bytesWritten
writeStream.path
require.cache
require.extensions
agent.freeSockets
agent.maxFreeSockets
agent.maxSockets
agent.requests
agent.sockets
server.listening
server.maxHeadersCount
server.timeout
response.finished
response.headersSent
response.sendDate
response.statusCode
response.statusMessage
message.headers
message.httpVersion
message.method
message.rawHeaders
message.rawTrailers
message.statusCode
message.statusMessage
message.socket
message.trailers
message.url
http.METHODS
http.STATUS_CODES
http.globalAgent
server.timeout
https.globalAgent
module.children
module.exports
module.filename
module.id
module.loaded
module.parent
server.connections
server.listening
server.maxConnections
socket.bufferSize
socket.bytesRead
socket.bytesWritten
socket.localAddress
socket.localPort
socket.remoteAddress
socket.remoteFamily
socket.remotePort
os.EOL
path.delimiter
path.posix
path.sep
path.win32
process.arch
process.argv
process.config
process.connected
process.env
process.execArgv
process.execPath
process.exitCode
process.mainModule
process.pid
process.platform
process.release
process.stderr
process.stdin
process.stdout
process.title
process.version
process.versions
punycode.ucs2
punycode.version
querystring.escape
querystring.unescape
cryptoStream.bytesWritten
server.connections
server.maxConnections
tlsSocket.authorized
tlsSocket.authorizationError
tlsSocket.encrypted
tlsSocket.localAddress
tlsSocket.localPort
tlsSocket.remoteAddress
tlsSocket.remoteFamily
tlsSocket.remotePort
rs.isRaw
ws.columns
ws.rows
Event
ChildProcess.close
ChildProcess.disconnect
ChildProcess.error
ChildProcess.exit
ChildProcess.message
Worker.disconnect
Worker.error
Worker.exit
Worker.listening
Worker.message
Worker.online
Worker.fork
Worker.setup
dgram.Socket.close
dgram.Socket.error
dgram.Socket.listening
dgram.Socket.message
EventEmitter.newListener
EventEmitter.removeListener
fs.FSWatcher.change
fs.FSWatcher.error
fs.ReadStream.open
fs.WriteStream.open
http.ClientRequest.abort
http.ClientRequest.checkExpectation
http.ClientRequest.connect
http.ClientRequest.continue
http.ClientRequest.response
http.ClientRequest.socket
http.ClientRequest.upgrade
http.Server.checkContinue
http.Server.clientError
http.Server.close
http.Server.connect
http.Server.connection
http.Server.request
http.Server.upgrade
http.ServerResponse.close
http.ServerResponse.finish
http.IncomingMessage.close
net.Server.close
net.Server.connection
net.Server.error
net.Server.listening
net.Socket.close
net.Socket.connect
net.Socket.data
net.Socket.drain
net.Socket.end
net.Socket.error
net.Socket.lookup
net.Socket.timeout
process.beforeExit
process.disconnect
process.exit
process.message
process.rejectionHandled
process.uncaughtException
process.unhandledRejection
process.warning
SIGINT, SIGHUP, etc.
rl.close
rl.line
rl.pause
rl.resume
rl.SIGCONT
rl.SIGINT
rl.SIGTSTP
REPLServer.exit
REPLServer.reset
stream.Readable.close
stream.Readable.data
stream.Readable.end
stream.Readable.error
stream.Readable.readable
stream.Writable.drain
stream.Writable.error
stream.Writable.finish
stream.Writable.pipe
stream.Writable.unpipe
SecurePair.secure
tls.Server.tlsClientError
tls.Server.newSession
tls.Server.OCSPRequest
tls.Server.resumeSession
tls.Server.secureConnection
tls.TLSSocket.OCSPResponse
tls.TLSSocket.secureConnect
WriteStream.resize
Option
-v, --version
-h, --help
"-e, --eval ""script"""
"-p, --print ""script"""
-c, --check
-i, --interactive
-r, --require module
--no-deprecation
--trace-deprecation
--throw-deprecation
--no-warnings
--trace-warnings
--trace-sync-io
--zero-fill-buffers
--track-heap-objects
--prof-process
--v8-options
--tls-cipher-list=list
--enable-fips
--force-fips
--icu-data-dir=file
Variable
NODE_DEBUG=module[,…]
NODE_PATH=path[:…]
NODE_DISABLE_COLORS=1
NODE_ICU_DATA=file
NODE_REPL_HISTORY=file
Buffer
__dirname
__filename
console
exports
global
module
process
process