readable.unpipe()

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

buffer.writeInt32LE()

buf.writeInt32LE(value, offset[, noAssert]) value <Number> Bytes to be written to Buffer offset <Number> 0 <= offset <= buf.length - 4 noAssert <Boolean> Default: false Return: <Number> The offset plus the number of written bytes Writes value to the Buffer at the specified offset with specified endian format (writeInt32BE() writes big endian, writeInt32LE() writes little endian). The value should be a valid signed 32-bit integer. Behavior is not defined when

clearImmediate()

clearImmediate(immediateObject) Stops an immediateObject, as created by setImmediate, from triggering.

fs.readdirSync()

fs.readdirSync(path) Synchronous readdir(3). Returns an array of filenames excluding '.' and '..'.

util.pump()

util.pump(readableStream, writableStream[, callback]) Stability: 0 - Deprecated: Use readableStream.pipe(writableStream) Deprecated predecessor of stream.pipe().

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'); });

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(() =&

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.

buffer.readUIntBE()

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