final
This commit is contained in:
		
							
								
								
									
										14
									
								
								task11/app.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								task11/app.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
|  | ||||
| const fs = require('fs'); | ||||
| const zlib = require('zlib'); | ||||
|  | ||||
| let readableStream = fs.createReadStream( | ||||
|     'hello.txt', | ||||
|     'utf8' | ||||
| ); | ||||
|  | ||||
| let writeableStream = fs.createWriteStream('hello.txt.gz'); | ||||
|  | ||||
| let gzip = zlib.createGzip(); | ||||
|  | ||||
| readableStream.pipe(gzip).pipe(writeableStream); | ||||
							
								
								
									
										3
									
								
								task11/hello.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								task11/hello.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Привет мир!  | ||||
| Продолжение записи  | ||||
| Завершение записи | ||||
							
								
								
									
										
											BIN
										
									
								
								task11/hello.txt.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								task11/hello.txt.gz
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										3
									
								
								task11/some.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								task11/some.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Привет мир!  | ||||
| Продолжение записи  | ||||
| Завершение записи | ||||
							
								
								
									
										3
									
								
								task11/some2.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								task11/some2.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| Привет мир!  | ||||
| Продолжение записи  | ||||
| Завершение записи | ||||
		Reference in New Issue
	
	Block a user
	 kogleee
					kogleee