XML to JSON parser transform stream
Extends Node's Stream Transform to parse XML to JSON
Usage
Using the parser transform is as simple as passing a new instance of the ParserStream to a readable stream through the .pipe
method.
Camelfy JSON
Create new parser stream to pipe a readable stream:
const pptions = camelfyJson: true; const parseStream = options;
File System Read Streams
const fs = ;const ParserStream = ; const parseXML = async { const readStream = fs ; return { readStream; readStream; };}; const getJson = async { try const json = await ; return json; catch err // throw };
S3 Object Read Stream
const parseS3GetObjectRead = async { const parseStream = ; const bucket key = records3; const stream = S3; return { stream; stream; };} const parsedJSON = await ;