util.isArray()

util.isArray(object) Stability: 0 - Deprecated Internal alias for Array.isArray. Returns true if the given "object" is an Array. Otherwise, returns false. const util = require('util'); util.isArray([]) // true util.isArray(new Array) // true util.isArray({}) // false

crypto.createVerify()

crypto.createVerify(algorithm) Creates and returns a Verify object that uses the given algorithm. On recent OpenSSL releases, openssl list-public-key-algorithms will display the available signing algorithms. One example is 'RSA-SHA256'.

pause event (Readline)

Event: 'pause' function () {} Emitted whenever the input stream is paused. Also emitted whenever the input stream is not paused and receives the SIGCONT event. (See events SIGTSTP and SIGCONT) Example of listening for 'pause': rl.on('pause', () => { console.log('Readline paused.'); });

stream.Transform

Class: stream.Transform A "transform" stream is a duplex stream where the output is causally connected in some way to the input, such as a zlib stream or a crypto stream. There is no requirement that the output be the same size as the input, the same number of chunks, or arrive at the same time. For example, a Hash stream will only ever have a single chunk of output which is provided when the input is ended. A zlib stream will produce output that is either much smaller or much larger than its

decipher.setAAD()

decipher.setAAD(buffer) When using an authenticated encryption mode (only GCM is currently supported), the cipher.setAAD() method sets the value used for the additional authenticated data (AAD) input parameter.

close event (stream.Readable)

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.readInt32BE()

buf.readInt32BE(offset[, noAssert])

url.parse()

url.parse(urlStr[, parseQueryString][, slashesDenoteHost]) Take a URL string, and return an object. Pass true as the second argument to also parse the query string using the querystring module. If true then the query property will always be assigned an object, and the search property will always be a (possibly empty) string. If false then the query property will not be parsed or decoded. Defaults to false. Pass true as the third argument to treat //foo/bar as { host: 'foo', pathname: '/bar' }

process.setegid()

process.setegid(id) Note: this function is only available on POSIX platforms (i.e. not Windows, Android) Sets the effective group identity of the process. (See setegid(2).) This accepts either a numerical ID or a groupname string. If a groupname is specified, this method blocks while resolving it to a numerical ID. if (process.getegid && process.setegid) { console.log(`Current gid: ${process.getegid()}`); try { process.setegid(501); console.log(`New gid: ${process.getegid(

zlib.Gunzip

Class: zlib.Gunzip Decompress a gzip stream.