console.timeEnd()

console.timeEnd(label) Stops a timer that was previously started by calling console.time() and prints the result to stdout: console.time('100-elements'); for (var i = 0; i < 100; i++) { ; } console.timeEnd('100-elements'); // prints 100-elements: 225.438ms

fs.statSync()

fs.statSync(path) Synchronous stat(2). Returns an instance of fs.Stats.

zlib.gunzip()

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

message event (Process)

Event: 'message' message <Object> a parsed JSON object or primitive value sendHandle <Handle object> a net.Socket or net.Server object, or undefined. Messages sent by ChildProcess.send() are obtained using the 'message' event on the child's process object.

fs.lchmodSync()

fs.lchmodSync(path, mode) Synchronous lchmod(2). Returns undefined.

fs.createWriteStream()

fs.createWriteStream(path[, options]) Returns a new WriteStream object. (See Writable Stream). options is an object or string with the following defaults: { flags: 'w', defaultEncoding: 'utf8', fd: null, mode: 0o666, autoClose: true } options may also include a start option to allow writing data at some position past the beginning of the file. Modifying a file rather than replacing it may require a flags mode of r+ rather than the default mode w. The defaultEncoding can be any one o

ECDH

Class: ECDH The ECDH class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) key exchanges. Instances of the ECDH class can be created using the crypto.createECDH() function. const crypto = require('crypto'); const assert = require('assert'); // Generate Alice's keys... const alice = crypto.createECDH('secp521r1'); const alice_key = alice.generateKeys(); // Generate Bob's keys... const bob = crypto.createECDH('secp521r1'); const bob_key = bob.generateKeys(); // Exchange and ge

zlib.unzip()

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

http.request()

http.request(options[, callback]) Node.js maintains several connections per server to make HTTP requests. This function allows one to transparently issue requests. options can be an object or a string. If options is a string, it is automatically parsed with url.parse(). Options: protocol: Protocol to use. Defaults to 'http:'. host: A domain name or IP address of the server to issue the request to. Defaults to 'localhost'. hostname: Alias for host. To support url.parse() hostname is prefer

domain.intercept()

domain.intercept(callback) callback <Function> The callback function return: <Function> The intercepted function This method is almost identical to domain.bind(callback). However, in addition to catching thrown errors, it will also intercept Error objects sent as the first argument to the function. In this way, the common if (err) return callback(err); pattern can be replaced with a single error handler in a single place. Example const d = domain.create(); function readSomeFil