Stream interface #4

Open
kintel opened this Issue Dec 19, 2013 · 2 comments

2 participants

@kintel

Have you considered making xml-splitter conform to the node.js stream interface?
It would be interesting to be able to do this:

var xmlparser = new XMLSplitter('some/path');
fs.createReadStream(<filename>).pipe(xmlparser).pipe(mysink);

..where mysink is an object mode writable stream.

@touv
@kintel

I'm using this for a project - once it matures a bit I might be able to look into refactoring it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment