Skip to content

Commit

Permalink
Merge add the end event into the documentation jahewson#13 from original
Browse files Browse the repository at this point in the history
  • Loading branch information
belaa007 authored Oct 18, 2018
1 parent eab49ab commit ee96b13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ reader.on('record', function(record) {
});
```

You can catch the end event of the record:
```javascript
reader.on('end', function(){
console.log("The XML record is done :)");
});
```

The output would take the form:

```javascript
Expand Down

0 comments on commit ee96b13

Please sign in to comment.