Skip to content

Commit

Permalink
Update docs example with latest ES6 syntax (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmadankumar authored Nov 19, 2020
1 parent f9a8db7 commit 4c7c885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ This module is meant to be wrapped internally by other modules and therefore lac
If you want a module that handles entry queueing and much more, you should check out [archiver](https://npmjs.org/package/archiver) which uses this module internally.

```js
var packer = require('zip-stream');
var archive = new packer(); // OR new packer(options)
const Packer = require('zip-stream');
const archive = new Packer(); // OR new Packer(options)

archive.on('error', function(err) {
throw err;
Expand Down

0 comments on commit 4c7c885

Please sign in to comment.