Explanation:
When there is no more data to read, a stream fires an end event.
Explanation:
The __dirname specifies the name of the directory in which the currently running script is located.
Explanation:
To find out how much memory is being consumed, use process.memoryUsage().
Explanation:
Node.js is a powerful JavaScript-based framework/platform based on the JavaScript V8 Engine in Google Chrome. It is used to develop I/O-intensive online applications such as video streaming sites, single-page applications, and other websites. Thousands of developers use Node.js because it is open source and absolutely free.
Explanation:
The global function setTimeout(cb, ms) is used to perform callback cb after at least ms milliseconds. The real delay is determined by external factors such as the granularity of the OS timer and the system load. A timer can only run for 24.8 days. The timer is represented by an opaque value returned by this function, which can be used to clear the timer.
Explanation:
The spawn() method returns streams after launching a new process with a supplied command (stdout, stderr).
Explanation:
The event's on property is used to bind a function to it.
Explanation:
Chanining is a method of connecting the output of one stream to the output of another stream in order to build a chain of multiple stream operations. It's most commonly associated with piping operations.
Explanation:
In the case of external binding, the error emitter is explicitly added to a domain using its add method.