Skip to content

Commit 8da7f4a

Browse files
committed
remove redundant options from readme example
1 parent 5dc895f commit 8da7f4a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ zipfile.outputStream.pipe(fs.createWriteStream("output.zip")).on("close", functi
2727
console.log("done");
2828
});
2929
// alternate apis for adding files:
30-
zipfile.addReadStream(process.stdin, "stdin.txt", {
31-
mtime: new Date(),
32-
mode: 0o100664, // -rw-rw-r--
33-
});
34-
zipfile.addBuffer(new Buffer("hello"), "hello.txt", {
35-
mtime: new Date(),
36-
mode: 0o100664, // -rw-rw-r--
37-
});
30+
zipfile.addReadStream(process.stdin, "stdin.txt");
31+
zipfile.addBuffer(new Buffer("hello"), "hello.txt");
3832
// call end() after all the files have been added
3933
zipfile.end();
4034
```

0 commit comments

Comments
 (0)