UNPKG

langxlang

Version:

LLM wrapper for OpenAI GPT and Google Gemini and PaLM 2 models

10 lines (7 loc) 203 B
const { XMLParser } = require('fast-xml-parser') function decodeXML (xmlStr) { const parser = new XMLParser() const jsonObj = parser.parse(xmlStr) return jsonObj } module.exports = { decodeXML }