Converts XML to JSON and vice-versa using node-expat parser
Overall
score
93%
A small command-line wrapper that converts streaming XML input to JSON and exposes the converter version output.
--pretty formats the JSON with two-space indentation while preserving the structure from the converter. @test--version prints only the underlying converter's version string, skips reading stdin, and exits with status 0. @test@generates
export async function run(
argv: string[],
io?: {
stdin?: NodeJS.ReadableStream;
stdout?: NodeJS.WritableStream;
stderr?: NodeJS.WritableStream;
}
): Promise<number>;Invoked as the XML-to-JSON command-line converter for stdin processing and version output.
Install with Tessl CLI
npx tessl i tessl/npm-xml2jsondocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10