process.exit()

process.exit([code]) Ends the process with the specified code. If omitted, exit uses the 'success' code 0. To exit with a 'failure' code: process.exit(1); The shell that executed Node.js should see the exit code as 1.

fs.futimes()

fs.futimes(fd, atime, mtime, callback) Change the file timestamps of a file referenced by the supplied file descriptor.

request.setNoDelay()

request.setNoDelay([noDelay]) Once a socket is assigned to this request and is connected socket.setNoDelay() will be called.

process.disconnect()

process.disconnect() Close the IPC channel to the parent process, allowing this child to exit gracefully once there are no other connections keeping it alive. Identical to the parent process's ChildProcess.disconnect(). If Node.js was not spawned with an IPC channel, process.disconnect() will be undefined.

resume event (Readline)

Event: 'resume' function () {} Emitted whenever the input stream is resumed. Example of listening for 'resume': rl.on('resume', () => { console.log('Readline resumed.'); });

crypto.createECDH()

crypto.createECDH(curve_name) Creates an Elliptic Curve Diffie-Hellman (ECDH) key exchange object using a predefined curve specified by the curve_name string. Use crypto.getCurves() to obtain a list of available curve names. On recent OpenSSL releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve.

certificate.exportPublicKey()

certificate.exportPublicKey(spkac) The spkac data structure includes a public key and a challenge. The certificate.exportPublicKey() returns the public key component in the form of a Node.js Buffer. The spkac argument can be either a string or a Buffer. const cert = require('crypto').Certificate(); const spkac = getSpkacSomehow(); const publicKey = cert.exportPublicKey(spkac); console.log(publicKey); // Prints the public key as <Buffer ...>

agent.maxFreeSockets

agent.maxFreeSockets By default set to 256. For Agents supporting HTTP KeepAlive, this sets the maximum number of sockets that will be left open in the free state.

http.Server

Class: http.Server This class inherits from net.Server and has the following additional events:

message event (dgram.Socket)

Event: 'message' msg <Buffer> - The message rinfo <Object> - Remote address information The 'message' event is emitted when a new datagram is available on a socket. The event handler function is passed two arguments: msg and rinfo. The msg argument is a Buffer and rinfo is an object with the sender's address information provided by the address, family and port properties: socket.on('message', (msg, rinfo) => { console.log('Received %d bytes from %s:%d\n', msg