process.geteuid()

process.geteuid() Note: this function is only available on POSIX platforms (i.e. not Windows, Android) Gets the effective user identity of the process. (See geteuid(2).) This is the numerical userid, not the username. if (process.geteuid) { console.log(`Current uid: ${process.geteuid()}`); }

response event (http.ClientRequest)

Event: 'response' function (response) { } Emitted when a response is received to this request. This event is emitted only once. The response argument will be an instance of http.IncomingMessage. Options: host: A domain name or IP address of the server to issue the request to. port: Port of remote server. socketPath: Unix Domain Socket (use one of host:port or socketPath)

fs.readSync()

fs.readSync(fd, buffer, offset, length, position) Synchronous version of fs.read(). Returns the number of bytesRead.

querystring.unescape

querystring.unescape The unescape function used by querystring.parse, provided so that it could be overridden if necessary. It will try to use decodeURIComponent in the first place, but if that fails it falls back to a safer equivalent that doesn't throw on malformed URLs.

querystring.stringify()

querystring.stringify(obj[, sep][, eq][, options]) Serialize an object to a query string. Optionally override the default separator ('&') and assignment ('=') characters. Options object may contain encodeURIComponent property (querystring.escape by default), it can be used to encode string with non-utf8 encoding if necessary. Example: querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }) // returns 'foo=bar&baz=qux&baz=quux&corge=' querystring.stringify({foo

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'.

cluster.isMaster

cluster.isMaster <Boolean> True if the process is a master. This is determined by the process.env.NODE_UNIQUE_ID. If process.env.NODE_UNIQUE_ID is undefined, then isMaster is true.

secureConnect event (tls.TLSSocket)

Event: 'secureConnect' This event is emitted after the handshaking process for a new connection has successfully completed. The listener will be called regardless of whether or not the server's certificate has been authorized. It is the user's responsibility to test tlsSocket.authorized to see if the server certificate was signed by one of the specified CAs. If tlsSocket.authorized === false then the error can be found in tlsSocket.authorizationError. Also, if either ALPN or NPN was used tlsSoc

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

listening event (net.Server)

Event: 'listening' Emitted when the server has been bound after calling server.listen.