fixed example
This commit is contained in:
parent
61f56ed9bf
commit
237f5ddd27
1 changed files with 3 additions and 4 deletions
|
@ -22,11 +22,10 @@ pack.entry({ name: 'my-test.txt' }, 'Hello World!');
|
||||||
// add a file called my-stream-test.txt from a stream
|
// add a file called my-stream-test.txt from a stream
|
||||||
myStream.pipe(pack.entry({ name: 'my-stream-test.txt' }, function(err) {
|
myStream.pipe(pack.entry({ name: 'my-stream-test.txt' }, function(err) {
|
||||||
// the stream was added
|
// the stream was added
|
||||||
|
// no more entries
|
||||||
|
pack.finalize();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// no more entries
|
|
||||||
pack.finalize();
|
|
||||||
|
|
||||||
// pipe the pack stream somewhere
|
// pipe the pack stream somewhere
|
||||||
pack.pipe(process.stdout);
|
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
|
uid: 0, // uid of entry owner. defaults to 0
|
||||||
gid: 0, // gid of entry owner. defaults to 0
|
gid: 0, // gid of entry owner. defaults to 0
|
||||||
uname: 'maf', // uname of entry owner. defaults to null
|
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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue