error event (fs.FSWatcher)

Event: 'error' error <Error> Emitted when an error occurs.

zlib.gunzipSync()

zlib.gunzipSync(buf[, options]) Decompress a Buffer or string with Gunzip.

diffieHellman.getPrivateKey()

diffieHellman.getPrivateKey([encoding]) Returns the Diffie-Hellman private key in the specified encoding, which can be 'binary', 'hex', or 'base64'. If encoding is provided a string is returned; otherwise a Buffer is returned.

decipher.final()

decipher.final([output_encoding]) Returns any remaining deciphered contents. If output_encoding parameter is one of 'binary', 'base64' or 'hex', a string is returned. If an output_encoding is not provided, a Buffer is returned. Once the decipher.final() method has been called, the Decipher object can no longer be used to decrypt data. Attempts to call decipher.final() more than once will result in an error being thrown.

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

https_server.setTimeout()

server.setTimeout(msecs, callback) See http.Server#setTimeout().

tlsSocket.getSession()

tlsSocket.getSession() Returns the ASN.1 encoded TLS session or undefined if none was negotiated. Could be used to speed up handshake establishment when reconnecting to the server.

options.detached

Stability: 2 - Stable The child_process module provides the ability to spawn child processes in a manner that is similar, but not identical, to popen(3). This capability is primarily provided by the child_process.spawn() function: const spawn = require('child_process').spawn; const ls = spawn('ls', ['-lh', '/usr']); ls.stdout.on('data', (data) => { console.log(`stdout: ${data}`); }); ls.stderr.on('data', (data) => { console.log(`stderr: ${data}`); }); ls.on('close', (code) => {

os.endianness()

os.endianness() Returns the endianness of the CPU. Possible values are 'BE' for big endian or 'LE' for little endian.