We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f80a770 commit ac27bacCopy full SHA for ac27bac
1 file changed
README.md
@@ -81,6 +81,8 @@ Similarly you can use `mapStream` incase you wanna modify the input/output file
81
``` js
82
var pack = tar.pack('./my-directory', {
83
mapStream: function(fileStream, header) {
84
+ // NOTE: the returned stream HAS to have the same length as the input stream.
85
+ // If not make sure to update the size in the header passed in here.
86
if (path.extname(header.name) === '.js') {
87
return fileStream.pipe(someTransform)
88
}
0 commit comments