buffer.writeUInt8()

buf.writeUInt8(value, offset[, noAssert]) value <Number> Bytes to be written to Buffer offset <Number> 0 <= offset <= buf.length - 1 noAssert <Boolean> Default: false Return: <Number> The offset plus the number of written bytes Writes value to the Buffer at the specified offset. The value should be a valid unsigned 8-bit integer. Behavior is not defined when value is anything other than an unsigned 8-bit integer. Set noAssert to true to skip validation of va

online event (Cluster)

Event: 'online' worker <cluster.Worker> After forking a new worker, the worker should respond with an online message. When the master receives an online message it will emit this event. The difference between 'fork' and 'online' is that fork is emitted when the master forks a worker, and 'online' is emitted when the worker is running. cluster.on('online', (worker) => { console.log('Yay, the worker responded after it was forked'); });

fs.readFileSync()

fs.readFileSync(file[, options]) Synchronous version of fs.readFile. Returns the contents of the file. If the encoding option is specified then this function returns a string. Otherwise it returns a buffer.

process.hrtime()

process.hrtime() Returns the current high-resolution real time in a [seconds, nanoseconds] tuple Array. It is relative to an arbitrary time in the past. It is not related to the time of day and therefore not subject to clock drift. The primary use is for measuring performance between intervals. You may pass in the result of a previous call to process.hrtime() to get a diff reading, useful for benchmarks and measuring intervals: var time = process.hrtime(); // [ 1800216, 25 ] setTimeout(() =&

buffer.readUIntBE()

buf.readUIntBE(offset, byteLength[, noAssert])

util.isString()

util.isString(object) Stability: 0 - Deprecated Returns true if the given "object" is a String. Otherwise, returns false. const util = require('util'); util.isString('') // true util.isString('foo') // true util.isString(String('foo')) // true util.isString(5) // false

worker.isConnected()

worker.isConnected() This function returns true if the worker is connected to its master via its IPC channel, false otherwise. A worker is connected to its master after it's been created. It is disconnected after the 'disconnect' event is emitted.

writable._writev()

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e

clearInterval()

clearInterval(intervalObject) Stops an intervalObject, as created by setInterval, from triggering.

zlib.deflateRaw()

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