tasks/util/stream.js
function pipeFile (file, endCallback) {
    testPipeFile();
    testFunction(endCallback, 'endCallback');

    let readable = fs.createReadStream(file);

    readableEndCallback = endCallback;

    readable.once('error', throwAsyncError);
    readable.once('close', onReadableClose);

    readable.pipe(writable, { end: false });
}
function pipeFile (file, endCallback) {
    testPipeFile();
    testFunction(endCallback, 'endCallback');

    let readable = fs.createReadStream(file);

    readableEndCallback = endCallback;

    readable.once('error', throwAsyncError);
    readable.once('close', onReadableClose);

    readable.pipe(writable, { end: false });
}
function pipeFile ( file , endCallback ) { testPipeFile ( ) ; testFunction ( endCallback , 'endCallback' ) ; let readable = fs . createReadStream ( file ) ; readableEndCallback = endCallback ; readable . once ( 'error' , throwAsyncError ) ; readable . once ( 'close' , onReadableClose ) ; readable . pipe ( writable , { end : false } ) ; }
Pipe file contents without ending WriteStream.

@function pipeFile
@param {String} file
@param {Function} endCallback
@api public
Pipe file contents without ending WriteStream .