User avatar
0x4d6165 (Julie or Mae)
@0x4d6165@wanderingwires.net
This is not an elegant solution but it works:

Parsing OPML in typescript

1) parse as XML using fast-xml-parser
2) shove the resulting object into a zod parser with the schema being a valid opml document
3) now your opml is mostly typesafe