Skip to content

Commit ee96b13

Browse files
authored
Merge add the end event into the documentation jahewson#13 from original
jahewson#13
1 parent eab49ab commit ee96b13

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ reader.on('record', function(record) {
3131
});
3232
```
3333

34+
You can catch the end event of the record:
35+
```javascript
36+
reader.on('end', function(){
37+
console.log("The XML record is done :)");
38+
});
39+
```
40+
3441
The output would take the form:
3542

3643
```javascript

0 commit comments

Comments
 (0)