buffer.INSPECT_MAX_BYTES

buffer.INSPECT_MAX_BYTES <Number> Default: 50 Returns the maximum number of bytes that will be returned when buffer.inspect() is called. This can be overridden by user modules. See util.inspect() for more details on buffer.inspect() behavior. Note that this is a property on the buffer module as returned by require('buffer'), not on the Buffer global or a Buffer instance.

buffer.readDoubleLE()

buf.readDoubleLE(offset[, noAssert]) offset <Number> 0 <= offset <= buf.length - 8 noAssert <Boolean> Default: false Return: <Number> Reads a 64-bit double from the Buffer at the specified offset with specified endian format (readDoubleBE() returns big endian, readDoubleLE() returns little endian). Setting noAssert to true skips validation of the offset. This allows the offset to be beyond the end of the Buffer. const buf = Buffer.from([1,2,3,4,5,6,7,8]); buf.re

dns.resolveTxt()

dns.resolveTxt(hostname, callback) Uses the DNS protocol to resolve text queries (TXT records) for the hostname. The addresses argument passed to the callback function is is a two-dimentional array of the text records available for hostname (e.g., [ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]). Each sub-array contains TXT chunks of one record. Depending on the use case, these could be either joined together or treated separately.

resumeSession event (tls.Server)

Event: 'resumeSession' function (sessionId, callback) { } Emitted when the client wants to resume the previous TLS session. The event listener may perform a lookup in external storage using the given sessionId and invoke callback(null, sessionData) once finished. If the session can't be resumed (i.e., doesn't exist in storage) one may call callback(null, null). Calling callback(err) will terminate incoming connection and destroy the socket. NOTE: adding this event listener will only have an e

fs.watchFile()

fs.watchFile(filename[, options], listener) Watch for changes on filename. The callback listener will be called each time the file is accessed. The options argument may be omitted. If provided, it should be an object. The options object may contain a boolean named persistent that indicates whether the process should continue to run as long as files are being watched. The options object may specify an interval property indicating how often the target should be polled in milliseconds. The defaul