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

fs.writeFileSync()

fs.writeFileSync(file, data[, options]) The synchronous version of fs.writeFile(). Returns undefined.

http_server.maxHeadersCount

server.maxHeadersCount Limits maximum incoming headers count, equal to 1000 by default. If set to 0 - no limit will be applied.

zlib.createDeflate()

zlib.createDeflate(options) Returns a new Deflate object with an options.

fs.unlinkSync()

fs.unlinkSync(path) Synchronous unlink(2). Returns undefined.

punycode.toASCII()

punycode.toASCII(domain) Converts a Unicode string representing a domain name to Punycode. Only the non-ASCII parts of the domain name will be converted, i.e. it doesn't matter if you call it with a domain that's already in ASCII. // encode domain names punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com'

fs.fdatasyncSync()

fs.fdatasyncSync(fd) Synchronous fdatasync(2). Returns undefined.

open event (fs.WriteStream)

Event: 'open' fd <Number> Integer file descriptor used by the WriteStream. Emitted when the WriteStream's file is opened.