Skip to content

Commit ac27bac

Browse files
committed
more docs
1 parent f80a770 commit ac27bac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Similarly you can use `mapStream` incase you wanna modify the input/output file
8181
``` js
8282
var pack = tar.pack('./my-directory', {
8383
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.
8486
if (path.extname(header.name) === '.js') {
8587
return fileStream.pipe(someTransform)
8688
}

0 commit comments

Comments
 (0)