Skip to content

Commit 0c0c1f0

Browse files
authoredApr 14, 2024··
Merge pull request #284 from syedhannan/master
Update README.md
2 parents ab64d6a + 2dbd02b commit 0c0c1f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fs.createReadStream('path/to/archive.zip')
4343
.pipe(unzipper.Extract({ path: 'output/path' }));
4444
```
4545

46-
Extract emits the 'close' event once the zip's contents have been fully extracted to disk. `Extract` uses [fstream.Writer](https://www.npmjs.com/package/fstream) and therefore needs need an absolute path to the destination directory. This directory will be automatically created if it doesn't already exits.
46+
Extract emits the 'close' event once the zip's contents have been fully extracted to disk. `Extract` uses [fstream.Writer](https://www.npmjs.com/package/fstream) and therefore needs an absolute path to the destination directory. This directory will be automatically created if it doesn't already exits.
4747

4848
### Parse zip file contents
4949

@@ -207,7 +207,7 @@ fs.createReadStream('path/to/archive.zip')
207207
## Open
208208
Previous methods rely on the entire zipfile being received through a pipe. The Open methods load take a different approach: load the central directory first (at the end of the zipfile) and provide the ability to pick and choose which zipfiles to extract, even extracting them in parallel. The open methods return a promise on the contents of the directory, with individual `files` listed in an array. Each file element has the following methods:
209209
* `stream([password])` - returns a stream of the unzipped content which can be piped to any destination
210-
* `buffer([password])` - returns a promise on the buffered content of the file)
210+
* `buffer([password])` - returns a promise on the buffered content of the file.
211211
If the file is encrypted you will have to supply a password to decrypt, otherwise you can leave blank.
212212
Unlike `adm-zip` the Open methods will never read the entire zipfile into buffer.
213213

0 commit comments

Comments
 (0)
Please sign in to comment.