eventemitter.on()

emitter.on(eventName, listener) Adds the listener function to the end of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times. server.on('connection', (stream) => { console.log('someone connected!'); }); Returns a reference to the EventEmitter so calls can be chained.

fs.fchmod()

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

dgram.createSocket()

dgram.createSocket(options[, callback]) options <Object> callback <Function> Attached as a listener to 'message' events. Returns: <dgram.Socket> Creates a dgram.Socket object. The options argument is an object that should contain a type field of either udp4 or udp6 and an optional boolean reuseAddr field. When reuseAddr is true socket.bind() will reuse the address, even if another process has already bound a socket on it. reuseAddr defaults to false. An optional callbac

child_process.fork()

child_process.fork(modulePath[, args][, options]) modulePath <String> The module to run in the child args <Array> List of string arguments options <Object> cwd <String> Current working directory of the child process env <Object> Environment key-value pairs execPath <String> Executable used to create the child process execArgv <Array> List of string arguments passed to the executable (Default: process.execArgv) silent <Boolean> If true, std

fs.fsync()

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

os.type()

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

Buffer.alloc()

Class Method: Buffer.alloc(size[, fill[, encoding]]) size <Number> fill <Value> Default: undefined encoding <String> Default: utf8 Allocates a new Buffer of size bytes. If fill is undefined, the Buffer will be zero-filled. const buf = Buffer.alloc(5); console.log(buf); // <Buffer 00 00 00 00 00> The size must be less than or equal to the value of require('buffer').kMaxLength (on 64-bit architectures, kMaxLength is (2^31)-1). Otherwise, a RangeError is thrown.

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

buffer.readFloatBE()

buf.readFloatBE(offset[, noAssert])