fs.renameSync()

fs.renameSync(oldPath, newPath) Synchronous rename(2). Returns undefined.

close event (http.IncomingMessage)

Event: 'close' function () { } Indicates that the underlying connection was closed. Just like 'end', this event occurs only once per response.

module.filename

module.filename <String> The fully resolved filename to the module.

response.writeHead()

response.writeHead(statusCode[, statusMessage][, headers]) Sends a response header to the request. The status code is a 3-digit HTTP status code, like 404. The last argument, headers, are the response headers. Optionally one can give a human-readable statusMessage as the second argument. Example: var body = 'hello world'; response.writeHead(200, { 'Content-Length': body.length, 'Content-Type': 'text/plain' }); This method must only be called once on a message and it must be called before

zlib.Deflate

Class: zlib.Deflate Compress data using deflate.

buffer.readUInt16BE()

buf.readUInt16BE(offset[, noAssert])

assert.notDeepStrictEqual()

assert.notDeepStrictEqual(actual, expected[, message]) Tests for deep strict inequality. Opposite of assert.deepStrictEqual(). const assert = require('assert'); assert.notDeepEqual({a:1}, {a:'1'}); // AssertionError: { a: 1 } notDeepEqual { a: '1' } assert.notDeepStrictEqual({a:1}, {a:'1'}); // OK If the values are deeply and strictly equal, an AssertionError is thrown with a message property set equal to the value of the message parameter. If the message parameter is undefined, a defaul

crypto.getDiffieHellman()

crypto.getDiffieHellman(group_name) Creates a predefined DiffieHellman key exchange object. The supported groups are: 'modp1', 'modp2', 'modp5' (defined in RFC 2412, but see Caveats) and 'modp14', 'modp15', 'modp16', 'modp17', 'modp18' (defined in RFC 3526). The returned object mimics the interface of objects created by crypto.createDiffieHellman(), but will not allow changing the keys (with diffieHellman.setPublicKey() for example). The advantage of using this method is that the parties do not

ecdh.computeSecret()

ecdh.computeSecret(other_public_key[, input_encoding][, output_encoding]) Computes the shared secret using other_public_key as the other party's public key and returns the computed shared secret. The supplied key is interpreted using specified input_encoding, and the returned secret is encoded using the specified output_encoding. Encodings can be 'binary', 'hex', or 'base64'. If the input_encoding is not provided, other_public_key is expected to be a Buffer. If output_encoding is given a strin

process.stdout

process.stdout A Writable Stream to stdout (on fd 1). For example, a console.log equivalent could look like this: console.log = (msg) => { process.stdout.write(`${msg}\n`); }; process.stderr and process.stdout are unlike other streams in Node.js in that they cannot be closed (end() will throw), they never emit the 'finish' event and that writes can block when output is redirected to a file (although disks are fast and operating systems normally employ write-back caching so it should be a