diffieHellman.setPublicKey()

diffieHellman.setPublicKey(public_key[, encoding]) Sets the Diffie-Hellman public key. If the encoding argument is provided and is either 'binary', 'hex' or 'base64', public_key is expected to be a string. If no encoding is provided, public_key is expected to be a Buffer.

message event (Process)

Event: 'message' message <Object> a parsed JSON object or primitive value sendHandle <Handle object> a net.Socket or net.Server object, or undefined. Messages sent by ChildProcess.send() are obtained using the 'message' event on the child's process object.

net_socket.address()

socket.address() Returns the bound address, the address family name and port of the socket as reported by the operating system. Returns an object with three properties, e.g. { port: 12346, family: 'IPv4', address: '127.0.0.1' }

process.argv

process.argv An array containing the command line arguments. The first element will be 'node', the second element will be the name of the JavaScript file. The next elements will be any additional command line arguments. // print process.argv process.argv.forEach((val, index, array) => { console.log(`${index}: ${val}`); }); This will generate: $ node process-2.js one two=three four 0: node 1: /Users/mjr/work/node/process-2.js 2: one 3: two=three 4: four

Buffer.isEncoding()

Class Method: Buffer.isEncoding(encoding) encoding <String> The encoding string to test Return: <Boolean> Returns true if the encoding is a valid encoding argument, or false otherwise.

domain.members

domain.members <Array> An array of timers and event emitters that have been explicitly added to the domain.

process.setgroups()

process.setgroups(groups) Note: this function is only available on POSIX platforms (i.e. not Windows, Android) Sets the supplementary group IDs. This is a privileged operation, meaning you need to be root or have the CAP_SETGID capability. The list can contain group IDs, group names or both.

stream.PassThrough

Class: stream.PassThrough This is a trivial implementation of a Transform stream that simply passes the input bytes across to the output. Its purpose is mainly for examples and testing, but there are occasionally use cases where it can come in handy as a building block for novel sorts of streams.

http.request()

http.request(options[, callback]) Node.js maintains several connections per server to make HTTP requests. This function allows one to transparently issue requests. options can be an object or a string. If options is a string, it is automatically parsed with url.parse(). Options: protocol: Protocol to use. Defaults to 'http:'. host: A domain name or IP address of the server to issue the request to. Defaults to 'localhost'. hostname: Alias for host. To support url.parse() hostname is prefer

domain.intercept()

domain.intercept(callback) callback <Function> The callback function return: <Function> The intercepted function This method is almost identical to domain.bind(callback). However, in addition to catching thrown errors, it will also intercept Error objects sent as the first argument to the function. In this way, the common if (err) return callback(err); pattern can be replaced with a single error handler in a single place. Example const d = domain.create(); function readSomeFil