buffer.keys()

buf.keys() Return: <Iterator> Creates and returns an iterator of Buffer keys (indices). const buf = Buffer.from('buffer'); for (var key of buf.keys()) { console.log(key); } // prints: // 0 // 1 // 2 // 3 // 4 // 5

path.resolve()

path.resolve([from ...], to) Resolves to to an absolute path. If to isn't already absolute from arguments are prepended in right to left order, until an absolute path is found. If after using all from paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory. Non-string from arguments are ignored. Another way to think of it is as a sequence of cd c

path.dirname()

path.dirname(p) Return the directory name of a path. Similar to the Unix dirname command. Example: path.dirname('/foo/bar/baz/asdf/quux') // returns '/foo/bar/baz/asdf'

worker.kill()

worker.kill([signal='SIGTERM']) signal <String> Name of the kill signal to send to the worker process. This function will kill the worker. In the master, it does this by disconnecting the worker.process, and once disconnected, killing with signal. In the worker, it does it by disconnecting the channel, and then exiting with code 0. Causes .suicide to be set. This method is aliased as worker.destroy() for backwards compatibility. Note that in a worker, process.kill() exists, but it i

Hash

Class: Hash The Hash class is a utility for creating hash digests of data. It can be used in one of two ways: As a stream that is both readable and writable, where data is written to produce a computed hash digest on the readable side, or Using the hash.update() and hash.digest() methods to produce the computed hash. The crypto.createHash() method is used to create Hash instances. Hash objects are not to be created directly using the new keyword. Example: Using Hash objects as streams: con

module.parent

module.parent <Object> Module object The module that first required this one.

process.getuid()

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

buffer.writeDoubleBE()

buf.writeDoubleBE(value, offset[, noAssert])

zlib.inflateSync()

zlib.inflateSync(buf[, options]) Decompress a Buffer or string with Inflate.

domain.exit()

domain.exit() The exit method exits the current domain, popping it off the domain stack. Any time execution is going to switch to the context of a different chain of asynchronous calls, it's important to ensure that the current domain is exited. The call to exit delimits either the end of or an interruption to the chain of asynchronous calls and I/O operations bound to a domain. If there are multiple, nested domains bound to the current execution context, exit will exit any domains nested with