clearInterval()

clearInterval(intervalObject) Stops an intervalObject, as created by setInterval, from triggering.

process.hrtime()

process.hrtime() Returns the current high-resolution real time in a [seconds, nanoseconds] tuple Array. It is relative to an arbitrary time in the past. It is not related to the time of day and therefore not subject to clock drift. The primary use is for measuring performance between intervals. You may pass in the result of a previous call to process.hrtime() to get a diff reading, useful for benchmarks and measuring intervals: var time = process.hrtime(); // [ 1800216, 25 ] setTimeout(() =&

readable.unpipe()

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e

reset event (REPLServer)

Event: 'reset' function (context) {} Emitted when the REPL's context is reset. This happens when you type .clear. If you start the repl with { useGlobal: true } then this event will never be emitted. Example of listening for reset: // Extend the initial repl context. var replServer = repl.start({ options ... }); someExtension.extend(r.context); // When a new context is created extend it as well. replServer.on('reset', (context) => { console.log('repl has a new context'); someExtensio

cli

Node.js comes with a wide variety of CLI options. These options expose built-in debugging, multiple ways to execute scripts, and other helpful runtime options. To view this documentation as a manual page in your terminal, run man node. Synopsis node [options] [v8 options] [script.js | -e "script"] [arguments] node debug [script.js | -e "script" | <host>:<port>] … node --v8-options Execute without arguments to start the REPL. For more info about node debug, please see the debug

os.totalmem()

os.totalmem() Returns the total amount of system memory in bytes.

message.setTimeout()

message.setTimeout(msecs, callback) msecs <Number> callback <Function> Calls message.connection.setTimeout(msecs, callback). Returns message.

fs.openSync()

fs.openSync(path, flags[, mode]) Synchronous version of fs.open(). Returns an integer representing the file descriptor.

readable.isPaused()

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e

.close()

server.close([callback]) See http.close() for details.