@etk/xml-object-stream

0.2.3 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i @etk/xml-object-stream

Weekly Downloads

0

Version

0.2.3

License

ISC

Unpacked Size

23.9 kB

Total Files

6

Last publish

Collaborators

  • etk-pl