fs.futimesSync()

fs.futimesSync(fd, atime, mtime) Synchronous version of fs.futimes(). Returns undefined.

util.isBuffer()

util.isBuffer(object) Stability: 0 - Deprecated: Use Buffer.isBuffer() instead. Returns true if the given "object" is a Buffer. Otherwise, returns false. const util = require('util'); util.isBuffer({ length: 0 }) // false util.isBuffer([]) // false util.isBuffer(new Buffer('hello world')) // true

eventemitter.emit()

emitter.emit(eventName[, arg1][, arg2][, ...]) Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each. Returns true if the event had listeners, false otherwise.

process.cwd()

process.cwd() Returns the current working directory of the process. console.log(`Current directory: ${process.cwd()}`);

util.isObject()

util.isObject(object) Stability: 0 - Deprecated Returns true if the given "object" is strictly an Object and not a Function. Otherwise, returns false. const util = require('util'); util.isObject(5) // false util.isObject(null) // false util.isObject({}) // true util.isObject(function(){}) // false

Debugger

Stability: 2 - Stable Node.js includes a full-featured out-of-process debugging utility accessible via a simple TCP-based protocol and built-in debugging client. To use it, start Node.js with the debug argument followed by the path to the script to debug; a prompt will be displayed indicating successful launch of the debugger: $ node debug myscript.js < debugger listening on port 5858 connecting... ok break in /home/indutny/Code/git/indutny/myscript.js:1 1 x = 5; 2 setTimeout(() => {

path.format()

path.format(pathObject) Returns a path string from an object. This is the opposite of path.parse. If pathObject has dir and base properties, the returned string will be a concatenation of the dir property, the platform-dependent path separator, and the base property. If the dir property is not supplied, the root property will be used as the dir property. However, it will be assumed that the root property already ends with the platform-dependent path separator. In this case, the returned strin

child_process.execSync()

child_process.execSync(command[, options]) command <String> The command to run options <Object> cwd <String> Current working directory of the child process input <String> | <Buffer> The value which will be passed as stdin to the spawned processsupplying this value will override stdio[0] stdio <Array> Child's stdio configuration. (Default: 'pipe') stderr by default will be output to the parent process' stderr unless stdio is specified env <Object&g

tlsSocket.setMaxSendFragment()

tlsSocket.setMaxSendFragment(size) Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512). Returns true on success, false otherwise. Smaller fragment sizes decrease the buffering latency on the client: larger fragments are buffered by the TLS layer until the entire fragment is received and its integrity is verified; large fragments can span multiple roundtrips and their processing can be delayed due to packet loss or reordering. However, smaller fragments add extr

process.abort()

process.abort() This causes Node.js to emit an abort. This will cause Node.js to exit and generate a core file.