0.2.3 • Published 5 years ago

@etk/xml-object-stream v0.2.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

XML Object Stream

Basic usage

const xos = new XMLObjectStream(fs.createReadStream('books-catalog.xml'), {emitElements:['book']});
xos.on('end', function () {
    // xml parsed
});
xos.on('error', (err) => {
    // handle error
});
xos.on('element', (elm) => {
    // do something with book element
});
xos.parse();