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.

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

fs.link()

fs.link(srcpath, dstpath, callback) Asynchronous link(2). No arguments other than a possible exception are given to the completion callback.

util.isRegExp()

util.isRegExp(object) Stability: 0 - Deprecated Returns true if the given "object" is a RegExp. Otherwise, returns false. const util = require('util'); util.isRegExp(/some regexp/) // true util.isRegExp(new RegExp('another regexp')) // true util.isRegExp({}) // false

tls.Server

Class: tls.Server This class is a subclass of net.Server and has the same methods on it. Instead of accepting only raw TCP connections, this accepts encrypted connections using TLS or SSL.

fs.readSync()

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

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)

process.config

process.config An Object containing the JavaScript representation of the configure options that were used to compile the current Node.js executable. This is the same as the config.gypi file that was produced when running the ./configure script. An example of the possible output looks like: { target_defaults: { cflags: [], default_configuration: 'Release', defines: [], include_dirs: [], libraries: [] }, variables: { host_arch: 'x64', node_install_npm: 't

change event (fs.FSWatcher)

Event: 'change' event <String> The type of fs change filename <String> The filename that changed (if relevant/available) Emitted when something changes in a watched directory or file. See more details in fs.watch().

process.initgroups()

process.initgroups(user, extra_group) Note: this function is only available on POSIX platforms (i.e. not Windows, Android) Reads /etc/group and initializes the group access list, using all groups of which the user is a member. This is a privileged operation, meaning you need to be root or have the CAP_SETGID capability. user is a user name or user ID. extra_group is a group name or group ID. Some care needs to be taken when dropping privileges. Example: console.log(process.getgroups());