fixed example

This commit is contained in:
Mathias Buus 2013-12-20 23:37:53 +01:00
parent 61f56ed9bf
commit 237f5ddd27

View file

@ -22,11 +22,10 @@ pack.entry({ name: 'my-test.txt' }, 'Hello World!');
// add a file called my-stream-test.txt from a stream
myStream.pipe(pack.entry({ name: 'my-stream-test.txt' }, function(err) {
// the stream was added
// no more entries
pack.finalize();
}));
// no more entries
pack.finalize();
// pipe the pack stream somewhere
pack.pipe(process.stdout);
```
@ -72,7 +71,7 @@ Most of these values can be found by stating a file.
uid: 0, // uid of entry owner. defaults to 0
gid: 0, // gid of entry owner. defaults to 0
uname: 'maf', // uname of entry owner. defaults to null
gname: 'wheel', // gname of entry owner. defaults to null
gname: 'staff', // gname of entry owner. defaults to null
}
```