Skip to content

Commit

Permalink
Document to createWriteStreamSomehow()
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Feb 7, 2020
1 parent f7dcd33 commit 87fe3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The core expects the `handler` to return a [stream.Duplex] instance. (A readable
// Example, compressing the response content in real time
xget(URL)
.use('compressor', () => zlib.createGzip())
.pipe(fs.createWriteStream(FILE))
.pipe(createWriteStreamSomehow())
```

### <a id='xgetwith'></a> xget.with(tag, handler)
Expand All @@ -174,7 +174,7 @@ xget(URL)
.with('bar', ({size}) => progressBar(size)) // Create a finite-sized progress bar
.use('bar', (_, store) => store.get('bar').genStream()) // Create a stream handling object that updates the progressbar from the number of bytes flowing through itself
.once('set', store => store.get('bar').print('Downloading...'))
.pipe(FILE);
.pipe(createWriteStreamSomehow());
```

### <a id='chunkloadinstance'></a> ChunkLoadInstance: [`Object`][object]
Expand Down

0 comments on commit 87fe3a8

Please sign in to comment.