zlib.deflate()

zlib.deflate(buf[, options], callback)

timeout event (net.Socket)

Event: 'timeout' Emitted if the socket times out from inactivity. This is only to notify that the socket has been idle. The user must manually close the connection. See also: socket.setTimeout()

fs.linkSync()

fs.linkSync(srcpath, dstpath) Synchronous link(2). Returns undefined.

certificate.verifySpkac()

certificate.verifySpkac(spkac) Returns true if the given spkac data structure is valid, false otherwise. The spkac argument must be a Node.js Buffer. const cert = require('crypto').Certificate(); const spkac = getSpkacSomehow(); console.log(cert.verifySpkac(new Buffer(spkac))); // Prints true or false

close event (Readline)

Event: 'close' function () {} Emitted when close() is called. Also emitted when the input stream receives its 'end' event. The Interface instance should be considered "finished" once this is emitted. For example, when the input stream receives ^D, respectively known as EOT. This event is also called if there is no SIGINT event listener present when the input stream receives a ^C, respectively known as SIGINT.

request.write()

request.write(chunk[, encoding][, callback]) Sends a chunk of the body. By calling this method many times, the user can stream a request body to a server--in that case it is suggested to use the ['Transfer-Encoding', 'chunked'] header line when creating the request. The chunk argument should be a Buffer or a string. The encoding argument is optional and only applies when chunk is a string. Defaults to 'utf8'. The callback argument is optional and will be called when this chunk of data is flu

fs.write()

fs.write(fd, buffer, offset, length[, position], callback) Write buffer to the file specified by fd. offset and length determine the part of the buffer to be written. position refers to the offset from the beginning of the file where this data should be written. If typeof position !== 'number', the data will be written at the current position. See pwrite(2). The callback will be given three arguments (err, written, buffer) where written specifies how many bytes were written from buffer. Not

Domain

Class: Domain The Domain class encapsulates the functionality of routing errors and uncaught exceptions to the active Domain object. Domain is a child class of EventEmitter. To handle the errors that it catches, listen to its 'error' event.

response.end()

response.end([data][, encoding][, callback]) This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. The method, response.end(), MUST be called on each response. If data is specified, it is equivalent to calling response.write(data, encoding) followed by response.end(callback). If callback is specified, it will be called when the response stream is finished.

crypto.createHmac()

crypto.createHmac(algorithm, key) Creates and returns an Hmac object that uses the given algorithm and key. The algorithm is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are 'sha256', 'sha512', etc. On recent releases of OpenSSL, openssl list-message-digest-algorithms will display the available digest algorithms. The key is the HMAC key used to generate the cryptographic HMAC hash. Example: generating the sha256 HMAC of a file const fil