How to install
npm install opmltojs
opmlToJs makes it easy to read and write OPML files in Node apps.
It builds on xml2Js.
Note this package does not expand OPML includes.
See the readstates app for an example of how to call it.
A blog post announcing opmlToJs.
v0.4.8 -- 8/12/16 by DW
Added new exported function visitSubs. I had to write this for an app I'm working on, but it seemed it should be part of this package.
v0.4.5 -- 8/4/16 by DW
Added new exported function opmlify. It turns an outline structure returned by opmltojs.parse into the equivalent OPML text. It's the other side of parsing, serializing.
Improved the example program, used the canonical example OPML file to test with. It is in its own folder with its own package.json file, so it's a better model of how an app might use the package.
Add a generator element to the head section after we parse the OPML text, following the example of RSS 2.0.
Commented some debugging code.