opmltojs

0.4.14 • Public • Published

opmlToJs package

How to install

npm install opmltojs

The story

opmlToJs makes it easy to read and write OPML files in Node apps.

The basic idea: Pass in some OPML text, get back a JavaScript object. And the other way works too.

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.

Updates

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.

Readme

Keywords

none

Package Sidebar

Install

npm i opmltojs

Weekly Downloads

228

Version

0.4.14

License

MIT

Unpacked Size

9.47 kB

Total Files

4

Last publish

Collaborators

  • davewiner