Skip to content

Commit

Permalink
Fix README mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
101arrowz committed Feb 8, 2022
1 parent 77fe167 commit c9becc4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -474,13 +474,15 @@ const zip = new Zip();
zip.ondata = (err, chunk, final) => { ... };
// The JSON and BMP are compressed in parallel
const exampleFile = new AsyncZipDeflate('example.json');
zip.add(exampleFile);
exampleFile.push(JSON.stringify({ large: 'object' }), true);
const exampleFile2 = new AsyncZipDeflate('example2.bmp', { level: 9 });
exampleFile.push(ec2a);
exampleFile.push(ec2b);
exampleFile.push(ec2c);
zip.add(exampleFile2);
exampleFile2.push(ec2a);
exampleFile2.push(ec2b);
exampleFile2.push(ec2c);
...
exampleFile.push(ec2Final, true);
exampleFile2.push(ec2Final, true);
zip.end();

// Streaming Unzip should register the asynchronous inflation algorithm
Expand Down

0 comments on commit c9becc4

Please sign in to comment.