process.chdir()

process.chdir(directory) Changes the current working directory of the process or throws an exception if that fails. console.log(`Starting directory: ${process.cwd()}`); try { process.chdir('/tmp'); console.log(`New directory: ${process.cwd()}`); } catch (err) { console.log(`chdir: ${err}`); }

unref()

unref() The opaque value returned by setTimeout and setInterval also has the method timer.unref() which allows the creation of a timer that is active but if it is the only item left in the event loop, it won't keep the program running. If the timer is already unrefd calling unref again will have no effect. In the case of setTimeout, unref creates a separate timer that will wakeup the event loop, creating too many of these may adversely effect event loop performance -- use wisely. Returns the

os.loadavg()

os.loadavg() Returns an array containing the 1, 5, and 15 minute load averages. The load average is a measure of system activity, calculated by the operating system and expressed as a fractional number. As a rule of thumb, the load average should ideally be less than the number of logical CPUs in the system. The load average is a very UNIX-y concept; there is no real equivalent on Windows platforms. That is why this function always returns [0, 0, 0] on Windows.

getHeapSpaceStatistics()

getHeapSpaceStatistics() Returns statistics about the V8 heap spaces, i.e. the segments which make up the V8 heap. Order of heap spaces nor availability of a heap space can be guaranteed as the statistics are provided via the V8 GetHeapSpaceStatistics function. Example result: [ { "space_name": "new_space", "space_size": 2063872, "space_used_size": 951112, "space_available_size": 80824, "physical_space_size": 2063872 }, { "space_name": "old_space", "space_siz

http.STATUS_CODES

http.STATUS_CODES <Object> A collection of all the standard HTTP response status codes, and the short description of each. For example, http.STATUS_CODES[404] === 'Not Found'.

os.EOL

os.EOL A constant defining the appropriate End-of-line marker for the operating system.

util.error()

util.error([...]) Stability: 0 - Deprecated: Use console.error() instead. Deprecated predecessor of console.error.

fs.lchown()

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

process.uptime()

process.uptime() Number of seconds Node.js has been running.

net.Server

Class: net.Server This class is used to create a TCP or local server. net.Server is an EventEmitter with the following events: