-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for streaming output with option #118
Changes from 15 commits
de34e4e
00db72f
74c2940
bc8f2e5
41df31b
7025b1c
6595e3a
5e65662
51b02e0
ac7f519
c96251c
5eee989
5ecb187
b4901ec
ea269e0
5b83731
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,15 @@ Default: `undefined` | |
Overrides the modification timestamp for all files added to the archive. | ||
|
||
Tip: Setting it to the same value across executions enables you to create stable archives that change only when the contents of their entries change, regardless of whether those entries were "touched" or regenerated. | ||
|
||
##### buffer | ||
|
||
Type: `boolean`<br> | ||
Default: `true` | ||
|
||
If `true`, the resulting ZIP file contents will be a buffer. Large zip files may not be possible to buffer, depending on the size of [Buffer MAX_LENGTH](https://nodejs.org/api/buffer.html#buffer_buffer_constants_max_length). | ||
If `false`, the ZIP file contents will be a stream. | ||
|
||
Similar to [gulp.src's `buffer` option](https://gulpjs.com/docs/en/api/src/#options). | ||
|
||
Tip: set this to `false` to allow creating ZIP files larger than Node's maximum buffer length. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just repeating what's on line 60. I think the option docs should explain why it exists when there's already such option for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would something like this work:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully clarified that now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not really clearer. As a user, I would have liked to know why the option exists when there's the
gulp.src
'sbuffer
option.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I felt that was explained in the paragraph above. Do you want me to remove the comparison or add more detail here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more detail.