@5stones/onix
Version:
A strongly typed library for parsing ONIX feeds.
18 lines • 515 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = void 0;
const fast_xml_parser_1 = require("fast-xml-parser");
function parse(body) {
const parser = new fast_xml_parser_1.XMLParser({
ignoreAttributes: false,
htmlEntities: true,
numberParseOptions: {
hex: false,
leadingZeros: false,
skipLike: /.*/,
},
});
return parser.parse(body);
}
exports.parse = parse;
//# sourceMappingURL=parse.js.map