Socket
Socket
Sign inDemoInstall

opmltojs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opmltojs

Pass in some OPML text, get back a JavaScript object.


Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 20 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc