From 237f5ddd273d4321f1d8974aa1bcbeea7ae9e036 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Fri, 20 Dec 2013 23:37:53 +0100 Subject: [PATCH] fixed example --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d409d8e..031f4db 100644 --- a/README.md +++ b/README.md @@ -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 } ```