mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Add 'bytesRead' and 'path' to fs.ReadStream
This commit is contained in:
@@ -423,6 +423,8 @@ function stream_readable_pipe_test() {
|
||||
var r = fs.createReadStream('file.txt');
|
||||
var z = zlib.createGzip({ finishFlush: zlib.Z_FINISH });
|
||||
var w = fs.createWriteStream('file.txt.gz');
|
||||
console.log(r.bytesRead);
|
||||
console.log(r.path);
|
||||
r.pipe(z).pipe(w);
|
||||
r.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user