readable._read()

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

net_socket.bytesWritten

socket.bytesWritten The amount of bytes sent.

disconnect event (Worker)

Event: 'disconnect' Similar to the cluster.on('disconnect') event, but specific to this worker. cluster.fork().on('disconnect', () => { // Worker has disconnected });

repl.start()

repl.start([options]) Returns and starts a REPLServer instance, that inherits from Readline Interface. Accepts an "options" Object that takes the following values: prompt - the prompt and stream for all I/O. Defaults to > . input - the readable stream to listen to. Defaults to process.stdin. output - the writable stream to write readline data to. Defaults to process.stdout. terminal - pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it

assert.equal()

assert.equal(actual, expected[, message]) Tests shallow, coercive equality between the actual and expected parameters using the equal comparison operator ( == ). const assert = require('assert'); assert.equal(1, 1); // OK, 1 == 1 assert.equal(1, '1'); // OK, 1 == '1' assert.equal(1, 2); // AssertionError: 1 == 2 assert.equal({a: {b: 1}}, {a: {b: 1}}); //AssertionError: { a: { b: 1 } } == { a: { b: 1 } } If the values are not equal, an AssertionError is thrown with a message property

fs.accessSync()

fs.accessSync(path[, mode]) Synchronous version of fs.access(). This throws if any accessibility checks fail, and does nothing otherwise.

zlib.deflate()

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

getHeapStatistics()

getHeapStatistics() Returns an object with the following properties { total_heap_size: 7326976, total_heap_size_executable: 4194304, total_physical_size: 7326976, total_available_size: 1152656, used_heap_size: 3476208, heap_size_limit: 1535115264 }

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.