Lines Matching refs:dest
16 Stream.prototype.pipe = function(dest, options) {
20 if (dest.writable && dest.write(chunk) === false && source.pause) {
33 dest.on('drain', ondrain);
35 // If the 'end' option is not supplied, dest.end() will be called when
36 // source gets the 'end' or 'close' events. Only dest.end() once.
37 if (!dest._isStdio && (!options || options.end !== false)) {
47 dest.end();
55 if (typeof dest.destroy === 'function') dest.destroy();
67 prependListener(dest, 'error', onerror);
72 dest.removeListener('drain', ondrain);
78 dest.removeListener('error', onerror);
83 dest.removeListener('close', cleanup);
89 dest.on('close', cleanup);
90 dest.emit('pipe', source);
93 return dest;