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

process.execArgv

process.execArgv This is the set of Node.js-specific command line options from the executable that started the process. These options do not show up in process.argv, and do not include the Node.js executable, the name of the script, or any options following the script name. These options are useful in order to spawn child processes with the same execution environment as the parent. Example: $ node --harmony script.js --version results in process.execArgv: ['--harmony'] and process.argv: ['/

fs.rmdir()

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

response.sendDate

response.sendDate When true, the Date header will be automatically generated and sent in the response if it is not already present in the headers. Defaults to true. This should only be disabled for testing; HTTP requires the Date header in responses.

process.platform

process.platform What platform you're running on: 'darwin', 'freebsd', 'linux', 'sunos' or 'win32' console.log(`This platform is ${process.platform}`);

util.isFunction()

util.isFunction(object) Stability: 0 - Deprecated Returns true if the given "object" is a Function. Otherwise, returns false. const util = require('util'); function Foo() {} var Bar = function() {}; util.isFunction({}) // false util.isFunction(Foo) // true util.isFunction(Bar) // true

dgram_socket.close()

socket.close([callback]) Close the underlying socket and stop listening for data on it. If a callback is provided, it is added as a listener for the 'close' event.

diffieHellman.verifyError

diffieHellman.verifyError A bit field containing any warnings and/or errors resulting from a check performed during initialization of the DiffieHellman object. The following values are valid for this property (as defined in constants module): DH_CHECK_P_NOT_SAFE_PRIME DH_CHECK_P_NOT_PRIME DH_UNABLE_TO_CHECK_GENERATOR DH_NOT_SUITABLE_GENERATOR

console.info()

console.info([data][, ...]) The console.info() function is an alias for console.log().

dns.resolveMx()

dns.resolveMx(hostname, callback) Uses the DNS protocol to resolve mail exchange records (MX records) for the hostname. The addresses argument passed to the callback function will contain an array of objects containing both a priority and exchange property (e.g. [{priority: 10, exchange: 'mx.example.com'}, ...]).