From a2390d075341e26866a421c2adf7643324ada556 Mon Sep 17 00:00:00 2001 From: bidetaggle Date: Wed, 2 May 2018 14:14:33 +0300 Subject: [PATCH] add the end event into the documentation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 1caf52f..08903b1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,14 @@ 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