writeStream.bytesWritten

writeStream.bytesWritten The number of bytes written so far. Does not include data that is still queued for writing.

readline.moveCursor()

readline.moveCursor(stream, dx, dy) Move cursor relative to it's current position in a given TTY stream.

end event (net.Socket)

Event: 'end' Emitted when the other end of the socket sends a FIN packet. By default (allowHalfOpen == false) the socket will destroy its file descriptor once it has written out its pending write queue. However, by setting allowHalfOpen == true the socket will not automatically end() its side allowing the user to write arbitrary amounts of data, with the caveat that the user is required to end() their side now.

punycode.encode()

punycode.encode(string) Converts a string of Unicode symbols to a Punycode string of ASCII-only symbols. // encode domain name parts punycode.encode('mañana'); // 'maana-pta' punycode.encode('☃-⌘'); // '--dqo34k'

os.type()

os.type() Returns the operating system name. For example 'Linux' on Linux, 'Darwin' on OS X and 'Windows_NT' on Windows.

punycode.decode()

punycode.decode(string) Converts a Punycode string of ASCII-only symbols to a string of Unicode symbols. // decode domain name parts punycode.decode('maana-pta'); // 'mañana' punycode.decode('--dqo34k'); // '☃-⌘'

SyntaxError

Class: SyntaxError A subclass of Error that indicates that a program is not valid JavaScript. These errors may only be generated and propagated as a result of code evaluation. Code evaluation may happen as a result of eval, Function, require, or vm. These errors are almost always indicative of a broken program. try { require('vm').runInThisContext('binary ! isNotOk'); } catch(err) { // err will be a SyntaxError } SyntaxError instances are unrecoverable in the context that created them – th

OCSPRequest event (tls.Server)

Event: 'OCSPRequest' function (certificate, issuer, callback) { } Emitted when the client sends a certificate status request. The server's current certificate can be parsed to obtain the OCSP URL and certificate ID; after obtaining an OCSP response callback(null, resp) is then invoked, where resp is a Buffer instance. Both certificate and issuer are Buffer DER-representations of the primary and issuer's certificates. They can be used to obtain the OCSP certificate ID and OCSP endpoint URL. Al

fs.existsSync()

fs.existsSync(path) Stability: 0 - Deprecated: Use fs.statSync() or fs.accessSync() instead. Synchronous version of fs.exists(). Returns true if the file exists, false otherwise.

dns.resolveCname()

dns.resolveCname(hostname, callback) Uses the DNS protocol to resolve CNAME records for the hostname. The addresses argument passed to the callback function will contain an array of canonical name records available for the hostname (e.g. ['bar.example.com']).