소스 검색

Minor updates. WiP.

Eugene Lazutkin 3 년 전
부모
커밋
8667dbc996
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      README.md

+ 4 - 1
README.md

@@ -19,7 +19,7 @@ import fs from 'fs';
 import zlib from 'zlib';
 import {Transform} from 'stream';
 
-// the chain will work on a stream of number objects
+// this pipeline will work on a stream of numbers
 const pipeline = new chain([
   // transforms a value
   x => x * x,
@@ -56,6 +56,9 @@ const pipeline = new chain([
   zlib.createGzip()
 ]);
 
+// the chain is a regular stream
+// it can be used with normal stream methods
+
 // log errors
 pipeline.on('error', error => console.log(error));