瀏覽代碼

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));