Inist-CNRS / node-xml-splitter

Other
8 stars 5 forks source link

Stream interface #4

Open kintel opened 10 years ago

kintel commented 10 years ago

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 commented 10 years ago

Hi, It's a good idea, but it's not yet implemented. Patchs are welcome ;-) Le 19 déc. 2013 17:08, "Marius Kintel" notifications@github.com a écrit :

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().pipe(xmlparser).pipe(mysink);

..where mysink is an object mode writable stream.

— Reply to this email directly or view it on GitHubhttps://github.com/touv/node-xml-splitter/issues/4 .

kintel commented 10 years ago

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