tls_server.addContext()

server.addContext(hostname, context) Add secure context that will be used if the client request's SNI hostname matches the supplied hostname (wildcards can be used). context can contain key, cert, ca or any other properties from tls.createSecureContext() options argument.

fs.fchown()

fs.fchown(fd, uid, gid, callback) Asynchronous fchown(2). No arguments other than a possible exception are given to the completion callback.

util.isFunction()

util.isFunction(object) Stability: 0 - Deprecated Returns true if the given "object" is a Function. Otherwise, returns false. const util = require('util'); function Foo() {} var Bar = function() {}; util.isFunction({}) // false util.isFunction(Foo) // true util.isFunction(Bar) // true

eventemitter.listenerCount()

emitter.listenerCount(eventName) eventName <Value> The name of the event being listened for Returns the number of listeners listening to the event named eventName.

response.statusCode

response.statusCode When using implicit headers (not calling response.writeHead() explicitly), this property controls the status code that will be sent to the client when the headers get flushed. Example: response.statusCode = 404; After response header was sent to the client, this property indicates the status code which was sent out.

readable event (stream.Readable)

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e

tlsSocket.remotePort

tlsSocket.remotePort The numeric representation of the remote port. For example, 443.

console.info()

console.info([data][, ...]) The console.info() function is an alias for console.log().

assert.ifError()

assert.ifError(value) Throws value if value is truthy. This is useful when testing the error argument in callbacks. const assert = require('assert'); assert.ifError(0); // OK assert.ifError(1); // Throws 1 assert.ifError('error') // Throws 'error' assert.ifError(new Error()); // Throws Error

childprocess.pid

child.pid <Number> Integer Returns the process identifier (PID) of the child process. Example: const spawn = require('child_process').spawn; const grep = spawn('grep', ['ssh']); console.log(`Spawned child pid: ${grep.pid}`); grep.stdin.end();