SaxesStream
NodeJS Streams wrapper around SaxesParser (npm package saxes)
- Single event stream
- Pipable to other streams
- TypeScript declarations
API
Input
Any string/Buffer Saxes would accept.
Output chunk format:
; ;
Events
Standard NodeJS Streams events.
Example 1 - Get huge online XML of books and stream parse it into CSV
; ;;;; /* Source HTTP XML stream */; /* SaxesStream XML parser */ ; /* Custom Transform Stream to pick the data from XML */ ; /* JSON -> CSV Transform Stream */; /* File Write Stream */; /* PIPE ALL THINGS TOGETHER */httpStream.pipeparser.pipebookTransform.pipecsv.pipefile;